Solved

VB Script for setting up new folders

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 195
Recommended Android live viewer for IP cam sys? 1 39
Is the 2017 Annual Visitor Survey on Chrome a Virus? 11 201
SHA2 certs for IIS AND Java? 2 90
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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…

773 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