MKDIR

MKDIR(pathname)

Creates a new directory.


pathnameThe full path name of the directory you want to create (String).

REMARKS
* This function will not create multiple subfolders.
* If you want to create subfolders you must create the top level folders first and then create the subfolders with a subsequent procedure call.
* If no drive is specified in the pathname, then the directory is created on the current drive.
* If you are using SharePoint then you must use forward slashes instead of backward slashes between the subfolders.
* You can use the DIR function to check if a file or directory exists.
* You can use the RMDIR statement to remove an existing directory.
* The equivalent .NET function is Microsoft.VisualBasic.FileSystem.MkDir
* For the Microsoft documentation refer to learn.microsoft.com

MkDir("C:\Temp\") 
MkDir("//sharepoint-site\folder\subfolder")

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top