Create new folder


int mkdir(folder [parent])



folder - name of new folder. If parent isn't used or is "", folder must be full path.

parent - container folder or drive. If folder includes full path, parent isn't used. Default: "".



Creates new folder.


Returns 1 if successfully created. Error if failed. Returns 0 if the folder already exists.


Also creates parent folders, if need. For example, mkdir "x:\a\b\c" creates folders a, b and c, if they did not exist.


See also: ChangeFileSecurity.



mkdir "$Desktop$\New Folder" ;;create "Nef Folder" on the desktop
mkdir "New Folder" "$Desktop$" ;;the same