Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


automatic folder production with numbered naming

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,968
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> automatic folder production with numbered naming
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 automatic folder production with numbered naming - 2/6/2004 3:03:12 AM   
  chickenhawk

 

Posts: 1
Score: 0
Joined: 2/6/2004
From: United Kingdom
Status: offline
I've got to prepare a several thousand empty folders on a shared drive with numbers running from 10,000 upwards. Is there a way that this could be done automatically using a script?

would appreciate any advice on this

cheer

chickenhawk
 
 
Post #: 1
 
 Re: automatic folder production with numbered naming - 2/9/2004 12:02:22 AM   
  rhrogers

 

Posts: 5
Score: 0
Joined: 2/6/2004
From: Canada
Status: offline
I would just create a loop of some kind where the name of the folder is changed, this is assuming that there is some kind of commonality or that it is pulling the names of the folders from some source. In the loop I would use the File System Object check your MSDN Library for complete reference. I Cut out the sample code from the CreateFolder Method:

Function CreateFolderDemo
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.CreateFolder("c:\New Folder")
CreateFolderDemo = f.Path
End Function

(in reply to chickenhawk)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> automatic folder production with numbered naming Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts