- Batch Script Tutorial
- Batch Script - Home
- Batch Script - Overview
- Batch Script - Environment
- Batch Script - Commands
- Batch Script - Files
- Batch Script - Syntax
- Batch Script - Variables
- Batch Script - Comments
- Batch Script - Strings
- Batch Script - Arrays
- Batch Script - Decision Making
- Batch Script - Operators
- Batch Script - DATE & TIME
- Batch Script - Input / Output
- Batch Script - Return Code
- Batch Script - Functions
- Batch Script - Process
- Batch Script - Aliases
- Batch Script - Devices
- Batch Script - Registry
- Batch Script - Network
- Batch Script - Printing
- Batch Script - Debugging
- Batch Script - Logging
- Batch Script Resources
- Batch Script - Quick Guide
- Batch Script - Useful Resources
- Batch Script - Discussion
Batch Script - Creating Folders
The creation of a folder is done with the assistance of the MD (Make directory) command.
Syntax
MKDIR [drive:]path MD [drive:]path
Let’s look at some examples on how to use the MD command.
Examples
md test
The above command will create a directory called test in your current directory.
md C:\test
The above command will create a directory called test in the C drive.
md “Test A”
If there are spaces in the folder name, then the folder name should be given in quotes.
mkdir \a\b\c
The above command creates directories recursively and is the same as issuing the following set of commands.
mkdir \a chdir \a mkdir b chdir b mkdir c
batch_script_functions.htm
Advertisements