''CreateDir'' Function

Top  Previous  Next

Creates a new directory.

Syntax:

CreateDir(directory-name)

 

Parameters

directory-name

The name of the directory to be created.
 

See Absolute or Relative Names.

Examples:

 

@// Creates a new directory called "documents" under the Web Applications root directory

CreateDir('documents')

 

@// Creates a new directory "temp/dirX" under the "c:" drive of the computer

CreateDir('c:\temp\dirX')

 

@// Creates a new directory "docs\proposals" under the "c:" drive of the computer

@set(fname,'c:\docs\proposals\proposal_1.txt')

CreateDir( sstrbl(fname,'\') ) @// Create