Solved

VB Script for setting up new folders

Posted on 2014-03-30
3
246 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 78

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 78

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

Is your NGFW recommended by NSS Labs?

Ours is! NSS Labs Next Generation Firewall Test gives the WatchGuard Firebox M4600 a "Recommended" rating! Curious where your NGFW landed on the  Security Value Map? See the map and download the full report today!

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
A 2007 NCSA Cyber Security survey revealed that a mere 4% of the population has a full understanding of firewalls. As business owner, you should be part of that 4% that has a full understanding.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Starting up a Project

728 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