?
Solved

VB Script for setting up new folders

Posted on 2014-03-30
3
Medium Priority
?
247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 79

Assisted Solution

by:arnold
arnold earned 2000 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 79

Accepted Solution

by:
arnold earned 2000 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

Make the most of your online learning experience.
A look at what happened in the Verizon cloud breach.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

762 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