Forum > Windows

how to stop non-service BOINC from bat file ?

(1/1)

Raistmer:
When I use boinccmd --quit it returns immediately, before boinc.exe actually stops.
That lead to damaged client_state  :-\

Richard Haselgrove:
Mymod of Fred's script has a double safeguard:

    ireturn = objShell.Run("NET STOP BOINC", 0, True)
    wscript.sleep (5000)

That 'True' halts execution until the 'NET' command returns (I'm only handling service mode at the moment, because that's what I use on my XP CUDA machines). Then there's a timed delay as well.

Can you emulate either of those in Perl?

Raistmer:
No need to emulate it in perl, shell script will be enough.
I prefer some wait for boinc shutdown (to do true optimization) instead of some pre-defined delay (it may be too short anyway  BTW ).
And no-service mode should be taken (net stop boinc kills boinc service just fine w/o additional means - our KNA bench use it ).

Navigation

[0] Message Index

Go to full version