CreateFileFolder

Top  Previous  Next

×V4.0Ø

S

A

W

WS

ü

ü

Syntax -

CreateFileFolder <Directory>

       Where:

               <Directory> is a string literal or a variable containing a string.

 

Description:

This command is used to create the folder specified in the literal string <Directory>. <Directory> must be a valid path and folder name that is accessible from the workstation on which EMUE is running.  This path can be local, on a network, or on an FTP server.

The key term #TODAY# can be used in the literal string that defines the <Directory> to insert the current date in file name.  The key term #TODAY# is replaced with the current date in the format MMDDYY.

The key term #TIME# can be used in the literal string that defines the <Directory> to insert the current time in file name.  The key term #TIME# is replaced with current time in the format HHMMSS.

The key term #INPUTFILENAME# can be used in the literal string that defines the <Directory> to insert the file name defined in the SetStartup InputFile command into the file name.  The key term #INPUTFILENAME# is replaced with the file name defined in the SetStartup InputFile command without its extension.

The key term #SCRIPTFILENAME# can be used in the literal string that defines the <Directory> to insert the script file name without extension into the file name.

The key term #SCRIPTFOLDER# can be used in the literal string that defines the <DestinationFilePathAndName> to insert the folder path where the script file is located.

 

Note: If the permissions on the directory / folder are not properly set to allow creation of folders this command will not work.

 

Sample 1:

       The following code will create the specified folder from the local C: drive.

CreateFileFolder "C:\EMUE_Test_Folder"

 

Sample 2:

       The following code will create the specified folder from the network server share.

CreateFileFolder "\\Server_Share\Network_Test_Folder"

 

Sample 3:

       The following code will create the specified folder from the FTP server.

CreateFileFolder "ftp://100.1.10.1/FTP_Folder"