Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 07-15-08   #1 (permalink)
Overclocker
 
intel ati

Join Date: Dec 2007
Location: Ireland
Posts: 266

Rep: 47 Badger.flynn is acknowledged by some
Unique Rep: 12
Trader Rating: 0
Default Create Windows folders batch file

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
__________________
System: HAL
CPU
Q6600 G0 3.6Ghz
Motherboard
Giga-byte GA-X48-DQ6
Memory
Corsair Dominator PC8500 2GB
Graphics Card
MSI Radeon HD 4850 Crossfire
Hard Drive
3 * 40GB WD RAID0
Sound Card
Creative SB Xtreme Music
Power Supply
Xion 500W
Case
Coolermaster Stacker 831
CPU cooling
ASUS Silent Knight
GPU cooling
Stock
OS
Vista Ultimate x64
Monitor
32" HD TV
Badger.flynn is offline   Reply With Quote
Old 07-15-08   #2 (permalink)
Fear the Wombat
 
stanrc's Avatar
 
amd ati

Join Date: Apr 2007
Location: Alexandria, VA
Posts: 4,104

Folding Team Rank: 90
Hardware Reviews: 7
Trader Rating: 3
Default

I've done some work with batch files, I can help you out.
__________________

Ramrod 1.5 + DFI LANPARTY DK 790FX-M2RS + AMD Phenom 9850 BE = Ramrod 2.0! Coming soon...

System: Ramrod 1.5
CPU
AMD Athlon 64 X2 5000+ Black Edition
Motherboard
DFI Lanparty 790FX
Memory
GSkill 4GB
Graphics Card
VisionTek HD4850
Hard Drive
Seagate 7200.10 160GB & 320GB
Sound Card
X-Fi XtremeGamer
Power Supply
Antec 650w
Case
Antec 900
CPU cooling
Arctic Cooling Freezer 64 Pro
GPU cooling
Stock
OS
Ubuntu/Vista 64
Monitor
Acer 19" WS
stanrc is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 07-15-08   #3 (permalink)
Overclocker
 
intel ati

Join Date: Dec 2007
Location: Ireland
Posts: 266

Rep: 47 Badger.flynn is acknowledged by some
Unique Rep: 12
Trader Rating: 0
Default

Thanks a million, anything I need to do?
__________________
System: HAL
CPU
Q6600 G0 3.6Ghz
Motherboard
Giga-byte GA-X48-DQ6
Memory
Corsair Dominator PC8500 2GB
Graphics Card
MSI Radeon HD 4850 Crossfire
Hard Drive
3 * 40GB WD RAID0
Sound Card
Creative SB Xtreme Music
Power Supply
Xion 500W
Case
Coolermaster Stacker 831
CPU cooling
ASUS Silent Knight
GPU cooling
Stock
OS
Vista Ultimate x64
Monitor
32" HD TV
Badger.flynn is offline   Reply With Quote
Old 07-15-08   #4 (permalink)
Fear the Wombat
 
stanrc's Avatar
 
amd ati

Join Date: Apr 2007
Location: Alexandria, VA
Posts: 4,104

Folding Team Rank: 90
Hardware Reviews: 7
Trader Rating: 3
Default

Quote:
Originally Posted by Badger.flynn View Post
Thanks a million, anything I need to do?

Just give me a better description of what you want it to do
__________________

Ramrod 1.5 + DFI LANPARTY DK 790FX-M2RS + AMD Phenom 9850 BE = Ramrod 2.0! Coming soon...

System: Ramrod 1.5
CPU
AMD Athlon 64 X2 5000+ Black Edition
Motherboard
DFI Lanparty 790FX
Memory
GSkill 4GB
Graphics Card
VisionTek HD4850
Hard Drive
Seagate 7200.10 160GB & 320GB
Sound Card
X-Fi XtremeGamer
Power Supply
Antec 650w
Case
Antec 900
CPU cooling
Arctic Cooling Freezer 64 Pro
GPU cooling
Stock
OS
Ubuntu/Vista 64
Monitor
Acer 19" WS
stanrc is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 07-15-08   #5 (permalink)
Overclock it or Die!
 
Modki's Avatar
 
amd ati

Join Date: May 2006
Location: USA
Posts: 6,491
Blog Entries: 3

Rep: 497 Modki is a proven memberModki is a proven memberModki is a proven memberModki is a proven memberModki is a proven member
Unique Rep: 301
FAQs Submitted: 1
Folding Team Rank: 628
Hardware Reviews: 4
Trader Rating: 6
Default

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.

System: ZOHAR
CPU
AMD X2 5000+ Black Edition @ 3.2Ghz
Motherboard
Gigabyte GA-MA770-S3
Memory
2GB Crucial Ballistix DDR2 1066
Graphics Card
HIS Radeon HD4850
Hard Drive
250GB WD SATAII
Sound Card
Realtek HD Audio
Power Supply
Silverstone ST60F 600W
Case
Antec 300
CPU cooling
Arctic Cooling Freezer 64 Pro
GPU cooling
Stock Fans
Monitor
Sony Bravia 32"
Modki is offline I fold for Overclock.net Overclocked Account Modki's Gallery   Reply With Quote
Old 07-15-08   #6 (permalink)
Fear the Wombat
 
stanrc's Avatar
 
amd ati

Join Date: Apr 2007
Location: Alexandria, VA
Posts: 4,104

Folding Team Rank: 90
Hardware Reviews: 7
Trader Rating: 3
Default

Quote:
Originally Posted by Modki View Post
Batch File:


wont let me do in the code box

mkdir "cathfoldername
Yeah, that pretty much sums it up
__________________

Ramrod 1.5 + DFI LANPARTY DK 790FX-M2RS + AMD Phenom 9850 BE = Ramrod 2.0! Coming soon...

System: Ramrod 1.5
CPU
AMD Athlon 64 X2 5000+ Black Edition
Motherboard
DFI Lanparty 790FX
Memory
GSkill 4GB
Graphics Card
VisionTek HD4850
Hard Drive
Seagate 7200.10 160GB & 320GB
Sound Card
X-Fi XtremeGamer
Power Supply
Antec 650w
Case
Antec 900
CPU cooling
Arctic Cooling Freezer 64 Pro
GPU cooling
Stock
OS
Ubuntu/Vista 64
Monitor
Acer 19" WS
stanrc is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 07-15-08   #7 (permalink)
Overclocker
 
intel ati

Join Date: Dec 2007
Location: Ireland
Posts: 266

Rep: 47 Badger.flynn is acknowledged by some
Unique Rep: 12
Trader Rating: 0
Default

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
__________________
System: HAL
CPU
Q6600 G0 3.6Ghz
Motherboard
Giga-byte GA-X48-DQ6
Memory
Corsair Dominator PC8500 2GB
Graphics Card
MSI Radeon HD 4850 Crossfire
Hard Drive
3 * 40GB WD RAID0
Sound Card
Creative SB Xtreme Music
Power Supply
Xion 500W
Case
Coolermaster Stacker 831
CPU cooling
ASUS Silent Knight
GPU cooling
Stock
OS
Vista Ultimate x64
Monitor
32" HD TV
Badger.flynn is offline   Reply With Quote
Old 07-15-08   #8 (permalink)
Fear the Wombat
 
stanrc's Avatar
 
amd ati

Join Date: Apr 2007
Location: Alexandria, VA
Posts: 4,104

Folding Team Rank: 90
Hardware Reviews: 7
Trader Rating: 3
Default

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.
__________________

Ramrod 1.5 + DFI LANPARTY DK 790FX-M2RS + AMD Phenom 9850 BE = Ramrod 2.0! Coming soon...

System: Ramrod 1.5
CPU
AMD Athlon 64 X2 5000+ Black Edition
Motherboard
DFI Lanparty 790FX
Memory
GSkill 4GB
Graphics Card
VisionTek HD4850
Hard Drive
Seagate 7200.10 160GB & 320GB
Sound Card
X-Fi XtremeGamer
Power Supply
Antec 650w
Case
Antec 900
CPU cooling
Arctic Cooling Freezer 64 Pro
GPU cooling
Stock
OS
Ubuntu/Vista 64
Monitor
Acer 19" WS
stanrc is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 07-15-08   #9 (permalink)
Overclocker
 
intel ati

Join Date: Dec 2007
Location: Ireland
Posts: 266

Rep: 47 Badger.flynn is acknowledged by some
Unique Rep: 12
Trader Rating: 0
Default

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
__________________
System: HAL
CPU
Q6600 G0 3.6Ghz
Motherboard
Giga-byte GA-X48-DQ6
Memory
Corsair Dominator PC8500 2GB
Graphics Card
MSI Radeon HD 4850 Crossfire
Hard Drive
3 * 40GB WD RAID0
Sound Card
Creative SB Xtreme Music
Power Supply
Xion 500W
Case
Coolermaster Stacker 831
CPU cooling
ASUS Silent Knight
GPU cooling
Stock
OS
Vista Ultimate x64
Monitor
32" HD TV
Badger.flynn is offline   Reply With Quote
Old 07-15-08   #10 (permalink)
Fear the Wombat
 
stanrc's Avatar
 
amd ati

Join Date: Apr 2007
Location: Alexandria, VA
Posts: 4,104

Folding Team Rank: 90
Hardware Reviews: 7
Trader Rating: 3
Default

After some research I found this:

Quote:
Batch files can only handle parameters %0 to %9

%0 is the program name as it was called,
%1 is the first command line parameter,
%2 is the second command line parameter,
and so on till %9.
so you could replace the code I gave you above with something like:

@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...
__________________

Ramrod 1.5 + DFI LANPARTY DK 790FX-M2RS + AMD Phenom 9850 BE = Ramrod 2.0! Coming soon...

System: Ramrod 1.5
CPU
AMD Athlon 64 X2 5000+ Black Edition
Motherboard
DFI Lanparty 790FX
Memory
GSkill 4GB
Graphics Card
VisionTek HD4850
Hard Drive
Seagate 7200.10 160GB & 320GB
Sound Card
X-Fi XtremeGamer
Power Supply
Antec 650w
Case
Antec 900
CPU cooling
Arctic Cooling Freezer 64 Pro
GPU cooling
Stock
OS
Ubuntu/Vista 64
Monitor
Acer 19" WS
stanrc is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Reply



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



All times are GMT -4. The time now is 06:17 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.21004 seconds with 9 queries