Make_Directory
See Also: File_Exist, Get_Directory, Make_Temp_File, Remove_Directory, Set_Directory, Valid_Drive
Purpose
To create a new disk folder.
Syntax
Make_Directory {folder}
What It Does
Make_Directory creates a new folder, as specified in the {folder} argument.
Example
In this example, a new folder named data will be created inside the existing folder named accounting on the H: drive.
Make_Directory "h:\accounting\data"
In this example, a new folder will be created as specified in the value of the variable sFolder.
String sFolder
Move "C:\MyProject\Temp" to sFolder
Make_Directory sFolder
Notes
-
If, for any reason,
{folder}cannot be created, error 4358 DFERR_RAWFILE_ERROR is reported. -
Make_Directorycan only create a folder one level deep at a time. You cannot create a subfolder in a non-existent folder. It does not validate the whole path and fill in the missing folders.