Solved

VB Script for setting up new folders

Posted on 2014-03-30
3
228 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 76

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 76

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
topping1 challenge 7 50
Wifi install - small London office 9 80
How to batch remove spreadsheet password 19 90
ost file to pst 10 51
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now