Add new folder

B

Bill

Is there a way that you can create a folder in file system if folder does
not exist.
Any help would be greatly appreciated.
 
D

Douglas J. Steele

There's a built-in MkDir statement.

From the Help file:

MkDir path

The required path argument is a string expression that identifies the
directory or folder to be created. The path may include the drive. If no
drive is specified, MkDir creates the new directory or folder on the current
drive.


Note that you can only create a single level of folder at a time. For
example, if you want C:\Folder1\Folder2\Folder3, and only C:\Folder1 exists,
you must use:

MkDir C:\Folder1\Folder2
MkDir C:\Folder1\Folder2\Folder3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top