»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 06-14-2003, 09:20 AM   #1 (permalink)
Registered User
 
Join Date: Feb 2002
Location: Cambs, UK
Posts: 635
Doot is on a distinguished road
Program to create new folders

Hi, is there a small program that will make say 100 new folders in one go.

Thanks Doot

Doot is offline   Reply With Quote
Old 06-15-2003, 05:23 AM   #2 (permalink)
Registered User
 
Steve R Jones's Avatar
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 1,151
Steve R Jones is on a distinguished road
Can probably do it at a command/dos prompt faster than windows.

md C:\Test (create a folder called test)
cd test (change to that folder)

md first
md second
md third
md fourth
Steve R Jones is offline   Reply With Quote
Old 06-15-2003, 05:46 AM   #3 (permalink)
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
or you could write a batch file to do it, but it would take about as much writing as doing it by hand. for something like that, I wouldn't use the windows shell though, far too slow.
__________________
_____
NuKeS
nukes is offline   Reply With Quote
Old 06-15-2003, 02:59 PM   #4 (permalink)
Registered User
 
PyroSama's Avatar
 
Join Date: Nov 2002
Location: Boise, Idaho
Posts: 2,361
PyroSama is on a distinguished road
Send a message via ICQ to PyroSama
You could wright it faster with notepad as a batch because you could use ctrl-c ctrl-v



PyroSama
__________________
[imgbox=#000000]http://clanimo.com/themes/bluebyu/images/logo.gif[/imgbox][url=http://www.clanimo.com]ClanIMO.com[/url]
PyroSama is offline   Reply With Quote
Old 06-15-2003, 03:03 PM   #5 (permalink)
Registered User
 
PyroSama's Avatar
 
Join Date: Nov 2002
Location: Boise, Idaho
Posts: 2,361
PyroSama is on a distinguished road
Send a message via ICQ to PyroSama
This took about 5 seconds.


Code:
md c:/test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test
md test
cd test


PyroSama
Attached Images
File Type: jpg test.jpg (15.4 KB, 40 views)
__________________
[imgbox=#000000]http://clanimo.com/themes/bluebyu/images/logo.gif[/imgbox][url=http://www.clanimo.com]ClanIMO.com[/url]
PyroSama is offline   Reply With Quote
Old 06-15-2003, 03:05 PM   #6 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Code:
Dim objFSO
Dim iCount

Set objFSO = CreateObject("Scripting.FileSystemObject")

For iCount = 1 to 100
  objFSO.CreateFolder "C:\Temp\FolderName" & iCount

Next

Set objFSO = Nothing
Cut and paste that into a text file (DO NOT Save with MS Word!!! It will NOT work, use notepad!) and save it as stuff.vbs (the actual filename is not important, just make sure it has a .vbs extension)

You can edit the filename and folder but dont' edit the syntax.

Hope it helps

(change the 100 to however many folders you desire)
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 06-15-2003, 03:07 PM   #7 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Pyro that will do nothing because you're creating the same folder over and over and over


---- edit ---

are you crazy, that will nest the folders DEEP.. not sure what the limit of the filesystem is but that is probably stretching it a bit and not sure how useful that would actually be.
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 06-16-2003, 01:45 AM   #8 (permalink)
Registered User
 
Join Date: Feb 2002
Location: Cambs, UK
Posts: 635
Doot is on a distinguished road
Thanks all, what I needed was say 30 new folders in the same directory 001 to 030. I can allways make a batch file in notepad and just change the folder that it starts in.

Thanks Doot
Doot is offline   Reply With Quote
Old 06-16-2003, 02:25 AM   #9 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Then change the script I wrote above 1 To 30..
It will create 30 folders in whatever folder you scecify 1 to 30
Folder1
Folder2
Folder3
....
Folder30 ...
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 06-16-2003, 05:11 PM   #10 (permalink)
Registered User
 
RedFury's Avatar
 
Join Date: Jun 2002
Location: mInN3$0t@
Posts: 1,303
RedFury is on a distinguished road
Send a message via AIM to RedFury
So Vass, what then, just double click the *.vbs file and it will make X number of folders in the directory that file is located in?
__________________
do it right, do it yourself. If that doesn't work, prepare to pay for your mistakes.
RedFury is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 09:06 PM.