• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

.bat file

MTXR

[H]ard|Gawd
Joined
Nov 4, 2000
Messages
1,324
how do i make a .bat file so that it will start all 4 of my clients at the same time with just a double click vs me double clicking every folding client itself.

Please help.
 
more info needed.... Are you running the latest console client? Are all 4 of these clients on the same PC?

it would look something like this:

stop:
Code:
net stop "FAH@D:+Program Files+Folding@Home+FAH502-Console.exe"

start:
Code:
net start "FAH@D:+Program Files+Folding@Home+FAH502-Console.exe"

Just add a line for each client you want to start/stop


Keep on Folding!! For the [H]orde!!

 
Yeah all 4 clients are on the same pc, and i am using umm.. FAH502-Console.exe on windows XP PRO SP2
 
If it's an XP box, you can use the commands in this post and just repeat them if all of the instances are setup as services. I'm not sure how you'd do it with four seperate clients that you run manually however.

 
The above only work if you have it installed as a service....

but just put the name of each service you want to start and stop on consequtive lines, and save as a .bat... make a short cut on your desktop and you're good to go


edit---Okay... if you don't want services, then you need to have the run command in the batch file for each.... so:

run FAH1\console.exe
run FAH2\console.exe
etc

But I'm unaware of how to stop them all with one click.......


Keep on Folding!! For the [H]orde!!

 
Yeah i was wondering why they weren't stopping or running.

Ok, thanks for the help anyone know how to close them down with one file? With the clients not being a service...

EDIT: I am newb, and i cant get the .bat file to run.

I put in ion something like this...

run "G:\folding\folding 1\FAH502-console.exe" and it didnt run
 
Any particular reason you don't want them as a service? it's much simpler... and they don't have to start when you boot.... it can be manual....


Keep on Folding!! For the [H]orde!!

 
umm, i guess i can run them as a service. I just like clicking on the taskbar to occasionally look at how far along they are.

I just dont want to run on startup. And since i just looked over the faq it looks like its gonna run on start up.
 
That's why we have EMIII and the other monitors listed in the FAQ... EMIII allows you to track the progress on all your boxen (even those on a network) and tells you if there is a problem... great little tool and the author visits here regularly... so give it a swing and see how you like it... There's even a [H]ardfolding skin for it :D


Keep on Folding!! For the [H]orde!!

 
arg, i'll look into it i guess....

I don't like the idea of using another program to look at a program when i can just look at it myself manually. I don't like to run more processes than neccessary.

I just want to be able to start all 4 at once with ease and kill all 4 at once with ease.

Foldings gonna be down till i get this figured out.
 
These are just suggestions and are not needed... :D EMIII uses very little cycles and even less RAM... and I'm tracking 6 clients with it, 4 of which are over the network... we're all just trying to help... If you're more comfy having those windows open in your task bar, we're not going to complain... Most of us just want F@H to run in the background so it's left untouched and uninterupted... It's all personal preference :D


Keep on Folding!! For the [H]orde!!

 
There is a way to stop folding with a bat, while not running it as a service. The command to use is:

"taskkill /im FAH502-Console.exe"

This will kill all processes named "FAH502-Console.exe"

And to start them up, command prompt doesn't like spaces in filenames/folders, also the command to start a program in a new window is start, not run, so "run G:\folding\folding 1\FAH502-console.exe" probably won't work. Try renaming the folders to "folding1,folding2, etc", and making the startup batch file like this:

Code:
g:
cd \folding\folding1
start g:\folding\folding1\FAH502-Console.exe
cd \folding\folding2
start g:\folding\folding2\FAH502-Console.exe
cd \folding\folding3
start g:\folding\folding3\FAH502-Console.exe


Sorry if I am confusing things more.

Edit: Fixed

Yay For Editing Edit: I guess I was wrong about the spaces in filenames/folders thing, it's working fine now.

Double Yay For Editing Edit: It is the copy command that doesn't like spaces. :D

Oldbenwa
 
One problem with the taskkill command and the /IM switch is that it doesn't kill the cores immediately, they hang around for a bit then die off. Looking at the documentation, you'd probably also want to run the /T switch which should kill any child processes.

The question in that method though, is does it alot for the client to close cleanly? My concern would be that you're killing the process without allowing the client to shut down cleanly.

 
Using the taskkill command gives me this:

Code:
[18:58:25] Assembly optimizations on if available.
[18:58:25] Entering M.D.
[18:58:32] Protein: p1850_Myosin6_PT_US
[18:58:32] 
[18:58:32] Completed 0 out of 500000 steps  (0)

Folding@Home Client Shutdown.

In Fahlog.txt, which is the same message as just closing the window F@H is running in. The core closes about two seconds after killing the client, which is also what happens when just closing the window F@H is running in.

Oldbenwa
 
EXCELLENT..
Thanks for the help i will try it out after class.
 
Wow thanks for the help. That works real good. Now i am not as annoyed folding. Thanks again.
 
I am almost sure it is in there

or was it on [H]ardfolding

 
Oldbenwa said:
Glad it worked! Moose.... FAQ?

Hey Ben, if you want to slap up a quick sysnopsis of the commands, I'll be more than happy to add it to the Advanced Tips & Tricks information for the F@H FAQ. :cool:

 
p[H]ant0m said:
Hey Ben, if you want to slap up a quick sysnopsis of the commands, I'll be more than happy to add it to the Advanced Tips & Tricks information for the F@H FAQ. :cool:


look at him using his mod powers already.

 
p[H]ant0m said:
Hey Ben, if you want to slap up a quick sysnopsis of the commands, I'll be more than happy to add it to the Advanced Tips & Tricks information for the F@H FAQ. :cool:

Ermmm, I'll see what I can do.

Oldbenwa

 
Whoops, kinda forgot about it after I got home. I'll try to remember tonight.

Oldbenwa
 
*sighs* Your punishment shall be to add 10 more GHz for the [H]orde!! :D


Keep on Folding!! For the [H]orde!!

 
Alright, let's face it, I'm not a writer:

Code:
Start/Stop Non-Service Console F@H Instances With .bat Files:

Starting Console: (F@HStart.bat)
-------------------------------------------------------------
g:
REM Switch to drive F@H resides on.
cd \folding\folding1
REM Switch to directory of first F@H instance.
start g:\folding\folding1\FAH502-Console.exe
REM Start first F@H instance.
cd \folding\folding2
REM Switch to directory of second F@H instance.
start g:\folding\folding2\FAH502-Console.exe
REM Start second F@H instance.
REM Etc, Etc.


Stopping Console: (F@HStop.bat)
-------------------------------------------------------------
taskkill FAH502-Console.exe
REM Stops every process named FAH502-Console.exe.  The FahCore_XX.exe 
REM processes will run for a few seconds longer, then close out automatically.

Could use some work, but yeah.

Oldbenwa
 
Guys...

We're having way too much fun at
marty's...
mary's...
marin's.... (from mari - n - ated :p )
marianne's.... (from mari - ann - ated :p )

expense...

even though that would only be about $0.39



 
Please tell me you can’t “catch” maryitis through forum posting………..sure looks like it’s spreading fast ;) :D
 
Back
Top