MAKEDIR        Create a new local folder

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Script Programming > Script Commands > All Script Commands >

MAKEDIR        Create a new local folder

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, DELDIR, WORKINGDIR, LISTDIR, MAKEFILENAME, DOSCMD