Files.CreateDir |
Top Previous Next |
Syntax function Files.CreateDir(FolderName: string): boolean
Description Creates a new folder with the name FolderName in the current working directory. This routine returns TRUE if it succeeds, FALSE otherwise.
See also
Example execute udsblock as begin /* make sure c:\temp\ exists */ Files.ForceDirectories('c:\temp\');
/* change working directory */ Files.SetCurrentDir('c:\temp\');
/* create a new directory */ resultbool = Files.CreateDir('newdir'); GUI.ShowMessage('New folder created');
/* remove the dir */ resultbool = Files.RemoveDir('newdir'); end |