Link to home
Start Free TrialLog in
Avatar of Bruce_S_C
Bruce_S_CFlag for United States of America

asked on

Scripting or batch file to create folders

I am looking to create a standard folder structure with a prompt for the name of the root folder in a script or a batch file. Also i want to be able to run this on existing folders to fill in the missing folders.
ASKER CERTIFIED SOLUTION
Avatar of sungenwang
sungenwang
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bruce_S_C

ASKER

Just to be sure this can be run on a current structure and it will not error if the folder is there?
No. These lines will create folder only if it's not there:

      If Not objFSO.FolderExists(strFolder) Then
            objFSO.CreateFolder(strFolder)
      End If

sew
How would i add in folder permissions?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial