New Posts  All Forums:Forum Nav:

[Guide] F@H Batch Files

post #1 of 3
Thread Starter 
This is my first guide, so I hope it's helpful to the few of you who might use it. If you think it's dumb, I don't care, so don't bother telling me.

Most people use F@Hmon or some similar thing. I, however, only have one GPU client and one SMP client, so using such a complex program seems unnecessary to me. So, I use Windows batch files to start and stop my folding clients.

If you are unfamiliar with what a batch file is, Wikipedia gives a brief overview, and this article in Microsoft's library gives a more in-depth rundown.

Part One: Create Your Batch Files

1. Create a text file on your desktop
2. Copy the following code into it.
3. Edit the code according to the comments (things following ";").
4. Save as FoldingStart.bat

a. Open any explorer window
b. Navigate in the menu at the top to Tools >> Options >> Folder Options >> View.
c. Un-check the box next to "Hide Extensions For Known File Types".
d. You should now be able to replace .txt with .bat


Starting Code
Code:
@ECHO OFF 

REM Flash the color green.
COLOR 20

REM Replace what is between the quotes with your path.
CD /D "C:\\Program Files (x86)\\foldingSMP\\"

REM This is the launching. It follows the format below.
REM START Minimized "Label" "NameOfProgram" -argument
START /MIN "SMP" "Folding@home-Win32-x86.exe" -smp 

REM Replace what is between the quotes with your path.
CD /D "C:\\Program Files (x86)\\foldingGPU\\"

REM Same as above.
START /MIN "GPU" "Folding@home-Win32-GPU.exe"
5. Repeat steps 1-3 for the following code.
6. Save as FoldingStop.bat

Stopping Code
Code:
@echo off
REM Flash the color red.
color 40

REM There is nothing to edit here.
REM Kills the processes. Note the names are the same as what you started.
taskkill /IM Folding@home-Win32-x86.exe
taskkill /IM Folding@home-Win32-GPU.exe
REM Note: This is for Windows 7. If in XP, replace "taskkill /IM" with "tskill".

Edited by Wiremaster - 9/5/10 at 2:46pm
Lappy
(9 items)
 
  
CPUMotherboardGraphicsRAM
P8700 Toshiba GM45 ICH9-M Intel 4 Series Samsung M4 
Hard DriveOptical DriveOSCase
Hitachi HTS723232L9A360 Matshita UJ880AS Windows 7 Pro 64 Toshiba A500-6621 
Mouse
Mionix Naos 5000 
  hide details  
Reply
Lappy
(9 items)
 
  
CPUMotherboardGraphicsRAM
P8700 Toshiba GM45 ICH9-M Intel 4 Series Samsung M4 
Hard DriveOptical DriveOSCase
Hitachi HTS723232L9A360 Matshita UJ880AS Windows 7 Pro 64 Toshiba A500-6621 
Mouse
Mionix Naos 5000 
  hide details  
Reply
post #2 of 3
Already been posted (though slightly different):
http://www.overclock.net/folding-hom...ients-one.html
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 3
Thread Starter 
Part Two: Choose Your Launching Method

The options are below:

Opening With a Hotkey Via Windows Shortcut
1. Right-Click on the batch file.
2. Select "Create Shortcut".
3. Make sure you're in the "Shortcut" tab.
4. Enter the hotkey of your choice.
5. Click ok.

Opening With a Hotkey Via Rivatuner
1. Download this .bat to .exe compiler/converter.
2. Un-zip it, and run it.
3. Select your batch file, and an icon if you desire.
4. Click "compile".
5. Open Rivatuner
6. Go to the "Launcher" tab.
7. Click the "+" to add a new item.
8. Select "Regular Item".
9. Enter a name, hotkey, target adapter, overclocking profile, fan profile, etc.
10. For "Associated Application", select your compiled launching program.
Edited by Wiremaster - 9/5/10 at 2:02pm
Lappy
(9 items)
 
  
CPUMotherboardGraphicsRAM
P8700 Toshiba GM45 ICH9-M Intel 4 Series Samsung M4 
Hard DriveOptical DriveOSCase
Hitachi HTS723232L9A360 Matshita UJ880AS Windows 7 Pro 64 Toshiba A500-6621 
Mouse
Mionix Naos 5000 
  hide details  
Reply
Lappy
(9 items)
 
  
CPUMotherboardGraphicsRAM
P8700 Toshiba GM45 ICH9-M Intel 4 Series Samsung M4 
Hard DriveOptical DriveOSCase
Hitachi HTS723232L9A360 Matshita UJ880AS Windows 7 Pro 64 Toshiba A500-6621 
Mouse
Mionix Naos 5000 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home