Batch Script - Creating Folders
Advertisements
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