MAKEDIR        Create a new local folder

Top  Previous  Next

Syntax:

MAKEDIR

[ folder name ]

Alt Syntax:

NEWDIR

[ folder name ]

Arguments:

[ folder name ]

Variable or string defining the folder name to create.

Options:

none

 

 

 

This script command creates a new local folder. Consider the following example in which a folder is created on the E: drive.

 

MAKEDIR "e:\newbie"

 

Folders may be created only one level at a time. For example, if you wanted to create a new subfolder under a new folder named e:\newbie, it would require two MAKEDIR commands as shown below:

 

MAKEDIR "e:\newbie\subfolder"   ;; WRONG!

;; do it this way:

MAKEDIR "e:\newbie"  

MAKEDIR "e:\newbie\subfolder"

 

To create a directory on an FTP site, use the FTPMAKEDIR script command.

 

 

Related command(s): FTPMAKEDIR, CHGDIR, DELDIR, WORKINGDIR, LISTDIR, MAKEFILENAME, DOSCMD