Solved

VB Script for setting up new folders

Posted on 2014-03-30
3
244 Views
Last Modified: 2014-10-21
HI,
I have a client who we want to set up a VBScript to create a new Job folder. Basically this job folder is going to have multiple sub-folders which then have another lot of sub-folders under them.
I haven’t had much experience with VB Scripting so was hoping someone might be able to give me an idea on how to script this.
Ultimately we would also like to have the script go ahead and apply differing NTFS permissions as well.
The folder structure would roughly look like this;
1.      Folder 1
a.      Folder 1.1
i.      Folder 1.1.1
b.      Folder 1.2
i.      Folder 1.2.1
ii.      Folder 1.2.2
c.      Folder 3
d.      Folder 4
i.      Folder 4.1
ii.      Folder RFI#
e.      Folder 5
f.      Folder 6
i.      Folder 6.1
ii.      Folder VO#
g.      Folder 7
i.      Folder 7.1
ii.      Folder PC #
h.      Folder
i.      Folder 8.1
ii.      Folder 8.2
i.      Folder 9
i.      Folder 9.1
ii.      Folder 9.2
iii.      Folder 9.3
j.      Folder 10
i.      Folder 10.1
ii.      Folder 10.2
k.      Folder 11
i.      Folder 11.1
ii.      Folder 11.2
iii.      Folder 11.3
iv.      Folder 11.4
v.      Folder 11.5
vi.      Folder 11.6

Hopefully this makes sense.
Any help is greatly appreciated.
0
Comment
Question by:Sbsystems
  • 2
3 Comments
 
LVL 77

Assisted Solution

by:arnold
arnold earned 500 total points
ID: 39965761
there  are many examples for vbscript and directory creation as well as the use or/application of ACL
in your case, you could have a CSV file from which the directories will be created and where your security/ntfs settings are defined.

in your case the entries have to be manually added given it is not a scriptable directory name 1-100, etc.
0
 

Author Comment

by:Sbsystems
ID: 39965775
Hi Arnold,
Thanks for your reply.
Attached is how the folders would be actually named and laid out.
Would you happen to have any good examples i could refer to for this?
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 39965789
There are many options, using msdn ref http://msdn.microsoft.com/en-us/library/2z9ffy99%28v=vs.84%29.aspx

Deals with filesystemobject, methods, etc. and examples.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question