|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming | |
Create Windows folders batch file
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
Overclocker
|
Hi
__________________I was wondering if anyone might have code to create a set of folders from a batch file or even an .exe, the file name would obviously need to be edited regularly so I'm guesses a batch file is the way to go. If anyone can help it would be great. Thanks
|
|||||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
Fear the Wombat
![]() |
I've done some work with batch files, I can help you out.
__________________
< Terms of Service/Rules > < OCN Professionalism Initiative > < My Windows Registry Script > < 32 vs. 64 Bit Thread > Ramrod 1.5 + DFI LANPARTY DK 790FX-M2RS + AMD Phenom 9850 BE = Ramrod 2.0! Coming soon...
|
|||||||||||||
|
|
|
|
#3 (permalink) | |||||||||||||
|
Overclocker
|
Thanks a million, anything I need to do?
__________________
|
|||||||||||||
|
|
|
|
|
#4 (permalink) | |||||||||||||
|
Fear the Wombat
![]() |
Just give me a better description of what you want it to do ![]()
__________________
< Terms of Service/Rules > < OCN Professionalism Initiative > < My Windows Registry Script > < 32 vs. 64 Bit Thread > Ramrod 1.5 + DFI LANPARTY DK 790FX-M2RS + AMD Phenom 9850 BE = Ramrod 2.0! Coming soon...
|
|||||||||||||
|
|
|
|
#5 (permalink) | ||||||||||||
|
Overclock it or Die!
|
Batch File:
wont let me do \ in the code box mkdir "c:\path\foldername
__________________
[HD 2900XT Info Thread] [ World of Warcraft Characters and Servers] [The Chair Mod] [500 FSB] [ 2900 in Vista Ultimate] [My 32 inch] ![]() Nvidia owner. AMD user. ATI Overclocker, Intel Overclocker. XP master. Vista Enthusiast. Linux Hobbyist. There is no right or wrong, only what is right for you.
|
||||||||||||
|
|
|
|
#6 (permalink) | |||||||||||||
|
Fear the Wombat
![]() |
Yeah, that pretty much sums it up
__________________
< Terms of Service/Rules > < OCN Professionalism Initiative > < My Windows Registry Script > < 32 vs. 64 Bit Thread > Ramrod 1.5 + DFI LANPARTY DK 790FX-M2RS + AMD Phenom 9850 BE = Ramrod 2.0! Coming soon...
|
|||||||||||||
|
|
|
|
#7 (permalink) | |||||||||||||
|
Overclocker
|
Simply need to create a set of say 10 or so default folder names with one folder being the root and the other 9 being sub folders. These folders would start with a numeric number that would change every time, say for example you might have "06123 OutGoing Mail" next time the I run the batch I would need to change the Name to "06164 OutGoing Mail" the path would also change.
__________________Thanks in advance for the help
|
|||||||||||||
|
|
|
|
|
#8 (permalink) | |||||||||||||
|
Fear the Wombat
![]() |
something like this:
@echo off mkdir c:\Mail <-- change that as needed mkdir c:\Mail\Outgoing 1 mkdir c:\Mail\Outgoing 2 mkdir c:\Mail\Outgoing 3 mkdir c:\Mail\Outgoing 4 mkdir c:\Mail\Outgoing 5 mkdir c:\Mail\Outgoing 6 mkdir c:\Mail\Outgoing 7 mkdir c:\Mail\Outgoing 8 mkdir c:\Mail\Outgoing 9 Then just manually change the folder names as needed.
__________________
< Terms of Service/Rules > < OCN Professionalism Initiative > < My Windows Registry Script > < 32 vs. 64 Bit Thread > Ramrod 1.5 + DFI LANPARTY DK 790FX-M2RS + AMD Phenom 9850 BE = Ramrod 2.0! Coming soon...
|
|||||||||||||
|
|
|
|
#9 (permalink) | |||||||||||||
|
Overclocker
|
That brilliant, would you know how to get the batch file to ask for the folder names to be inputed when it is run, obviously this would make it alot more useful.
__________________Again thanks a million for you help
|
|||||||||||||
|
|
|
|
|
#10 (permalink) | ||||||||||||||
|
Fear the Wombat
![]() |
After some research I found this:
Quote:
@echo off mkdir c:\Mail <-- change that as needed mkdir c:\Mail\%1 mkdir c:\Mail\%2 mkdir c:\Mail\%3 mkdir c:\Mail\%4 mkdir c:\Mail\%5 mkdir c:\Mail\%6 mkdir c:\Mail\%7 mkdir c:\Mail\%8 mkdir c:\Mail\%9 so when you run the program, just type: programname foldername1 foldername2 etc...
__________________
< Terms of Service/Rules > < OCN Professionalism Initiative > < My Windows Registry Script > < 32 vs. 64 Bit Thread > Ramrod 1.5 + DFI LANPARTY DK 790FX-M2RS + AMD Phenom 9850 BE = Ramrod 2.0! Coming soon...
|
||||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|