Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › Folding@Home Guides and Tutorials › [Windows] Start all your clients with one shortcut
New Posts  All Forums:Forum Nav:

[Windows] Start all your clients with one shortcut

post #1 of 6
Thread Starter 
This guide will demonstrate how to use a batch file and the "start" command to run all of your clients from one shortcut or startup entry.

If you don't understand what a batch file is or how to make one, a guide is available here


Normally, when one makes a batch file, it will run all of the commands listed in sequential order, waiting for one process to complete before continuing on to the next. In the case of multiple folding clients, this isn't very helpful because if one is started in this manner, the next one will never start because the process is never finished, meaning you will only have one client running in stead of many.

This is where the start command comes in. If a program in a batch file is preceded by "start", the batch file will continue to run the next lines regardless of the status of the program. This way, all of your clients can be started in rapid succession by running a single file or shortcut.

OR, if your machine logs in automatically (using the userpasswords2 trick (excellent guide by Zodac), you can put a shortcut to the batch file in your start menu startup folder to have your clients start as part of the machine's normal login process.

Heres an example batch file to start 4 GPU clients and one -bigadv SMP client:

Code:
cd "C:\\Program Files (x86)\\Folding@Home\\GPU-1"
start Folding@home-Win32-GPU.exe -gpu 0
cd "C:\\Program Files (x86)\\Folding@Home\\GPU-2"
start Folding@home-Win32-GPU.exe -gpu 1
cd "C:\\Program Files (x86)\\Folding@Home\\GPU-3"
start Folding@home-Win32-GPU.exe -gpu 2
cd "C:\\Program Files (x86)\\Folding@Home\\GPU-4"
start Folding@home-Win32-GPU.exe -gpu 3
cd "C:\\Program Files (x86)\\Folding@Home\\SMP"
start Folding@home-Win32-x86.exe -smp -bigadv
-Any flags can be used on the clients via this batch file method the same as a regular shortcut.
-Substitute your file paths instead of mine.
-The quotes are required if there are spaces in the file name.

Please note the "cd" commands before each start command. These are crucial to the successful operation of this file, otherwise all of the files F@H uses to operate (config file, core, etc) will be stored where the program was called from (ie, wherever the shortcut/batch file is), not the directory the program is in.

Using this method on a machine that automatically logs in, one could presumably make a folding rig that can recover from power outages and other accidental reboots without any user intervention (assuming the power comes back eventually)

Enjoy.
post #2 of 6
My computer doesn't stop Folding, but can come in handy for others.
Megadoomer
(14 items)
 
Family Computer
(13 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II X6 1090T @ 4.0Ghz ASUS M4A89GTD PRO Sparkle GTS 450 2x4GB G-Skill Sniper 
Hard DriveCoolingOSMonitor
Samsung F1 1TB CM Hyper 212+ Windows 7 Professional x64 Samsung T220 
KeyboardPowerCaseMouse
Logitech MX3000 Laser CM 1000M HAF 922 Logitech VX Revolution 
CPUMotherboardGraphicsRAM
Q6600 Asus PN5-D 750i Evga GTS 250 2x2GB Crucial Ballistix 
Hard DriveOptical DriveOSMonitor
750GB Hitachi Samsung Super Writemaster Windows 7 Professional x64 19" Dell 
PowerCase
Corsair 450VX Antec 900 
  hide details  
Reply
Megadoomer
(14 items)
 
Family Computer
(13 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II X6 1090T @ 4.0Ghz ASUS M4A89GTD PRO Sparkle GTS 450 2x4GB G-Skill Sniper 
Hard DriveCoolingOSMonitor
Samsung F1 1TB CM Hyper 212+ Windows 7 Professional x64 Samsung T220 
KeyboardPowerCaseMouse
Logitech MX3000 Laser CM 1000M HAF 922 Logitech VX Revolution 
CPUMotherboardGraphicsRAM
Q6600 Asus PN5-D 750i Evga GTS 250 2x2GB Crucial Ballistix 
Hard DriveOptical DriveOSMonitor
750GB Hitachi Samsung Super Writemaster Windows 7 Professional x64 19" Dell 
PowerCase
Corsair 450VX Antec 900 
  hide details  
Reply
post #3 of 6
Nice thread. I used to use a batch file and never got back to remaking one. Thanks!
6 Core Beast
(13 items)
 
   
CPUMotherboardGraphicsRAM
i7 970 @ 4Ghz Asus Rampage II GENE EVGA GTX480 SSC 12GB Crucial Dominators 
Hard DriveOSMonitorKeyboard
300GB VelociRaptor Windows 7 Pro x64 2x Dell 2208 WFP Logitech G15 
PowerCaseMouseMouse Pad
Corsair TX750 Antec P180 Mini Logitech G9 iCENAT 
CPUMotherboardGraphicsRAM
i5 2550k ASUS Maximus V GENE EVGA GeForce GTX 660 Ti+ 3GB w/Backplate 8GB Kingston Hyper-X 
Hard DriveCoolingOSMonitor
320GB Samsung 7200rpm Thermalright Venomous X W7 Pro x64 22" Dell Ultrasharp 
Power
Corsair CX500 
CPUMotherboardGraphicsRAM
AMD XII 250 MSI 790FX-GD70 EVGA GTS450 8GB Corsair Dominators 
Hard DriveOSMonitorPower
Raptor 150GB OS + 8TB Data Windows 7 x64 Pro 47" Vizio TV OCZ 650W 
Case
HAF 932 
  hide details  
Reply
6 Core Beast
(13 items)
 
   
CPUMotherboardGraphicsRAM
i7 970 @ 4Ghz Asus Rampage II GENE EVGA GTX480 SSC 12GB Crucial Dominators 
Hard DriveOSMonitorKeyboard
300GB VelociRaptor Windows 7 Pro x64 2x Dell 2208 WFP Logitech G15 
PowerCaseMouseMouse Pad
Corsair TX750 Antec P180 Mini Logitech G9 iCENAT 
CPUMotherboardGraphicsRAM
i5 2550k ASUS Maximus V GENE EVGA GeForce GTX 660 Ti+ 3GB w/Backplate 8GB Kingston Hyper-X 
Hard DriveCoolingOSMonitor
320GB Samsung 7200rpm Thermalright Venomous X W7 Pro x64 22" Dell Ultrasharp 
Power
Corsair CX500 
CPUMotherboardGraphicsRAM
AMD XII 250 MSI 790FX-GD70 EVGA GTS450 8GB Corsair Dominators 
Hard DriveOSMonitorPower
Raptor 150GB OS + 8TB Data Windows 7 x64 Pro 47" Vizio TV OCZ 650W 
Case
HAF 932 
  hide details  
Reply
post #4 of 6
Nice post +rep.
    
CPUMotherboardGraphicsRAM
i7-3770k @ 4.5GHz ASRock Z68 Extreme3 Gen3 EVGA GeForce 560 Ti 1 GB 8 GB G.Skill Sniper LVS XMP 
Hard DriveHard DriveOptical DriveCooling
OCZ Agility 3 120GB WD Caviar Black 1 TB Memorex External DVD/DL-RW Corsair H60 Push/Pull 
OSMonitorKeyboardPower
Windows 7 Ultimate 64-bit Sony Bravia 32XBR9 Gateway RT3602 Corsair 750TX 
CaseMouseMouse PadAudio
Antec Six Hundred Logitech MX-Revolution Zotac Rat Pad Asus Xonar Essence STX 
AudioAudioAudio
Sound Blaster Audigy Platinum Onkyo HT-R590 Pioneer HDJ-2000 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
i7-3770k @ 4.5GHz ASRock Z68 Extreme3 Gen3 EVGA GeForce 560 Ti 1 GB 8 GB G.Skill Sniper LVS XMP 
Hard DriveHard DriveOptical DriveCooling
OCZ Agility 3 120GB WD Caviar Black 1 TB Memorex External DVD/DL-RW Corsair H60 Push/Pull 
OSMonitorKeyboardPower
Windows 7 Ultimate 64-bit Sony Bravia 32XBR9 Gateway RT3602 Corsair 750TX 
CaseMouseMouse PadAudio
Antec Six Hundred Logitech MX-Revolution Zotac Rat Pad Asus Xonar Essence STX 
AudioAudioAudio
Sound Blaster Audigy Platinum Onkyo HT-R590 Pioneer HDJ-2000 
  hide details  
Reply
post #5 of 6
SLEEP 10

Make it wait ten seconds to open another file
Main rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Icore7 2600k P8P67LE ASUS EVGA GTS450SC, gtx460 8 gb Corsair Veng 
Hard DriveOSMonitorKeyboard
OCZ Vertex Plus Series 60 GB Windows 7 DCLCD 19" WESTINGHOUSE 19" microshaft ECR 4000 
PowerCaseMouse
ULTRA LSP 650 thermailtake element t razor deathadder 
  hide details  
Reply
Main rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Icore7 2600k P8P67LE ASUS EVGA GTS450SC, gtx460 8 gb Corsair Veng 
Hard DriveOSMonitorKeyboard
OCZ Vertex Plus Series 60 GB Windows 7 DCLCD 19" WESTINGHOUSE 19" microshaft ECR 4000 
PowerCaseMouse
ULTRA LSP 650 thermailtake element t razor deathadder 
  hide details  
Reply
post #6 of 6
Thread Starter 
any particular reason to do that in this case? I've never had an issue with them all starting in rapid succession since they're using different hardware for processing anyway.
New Posts  All Forums:Forum Nav:
  Return Home
Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › Folding@Home Guides and Tutorials › [Windows] Start all your clients with one shortcut