How to properly shutdown the WinSMP client [ctrl+c]
Posted: Sun Mar 23, 2008 9:43 pm
How do I shutdown the WinSMP when I need to restart/shutdown my computer, without jeopardizing the WU?
Community driven support forum for Folding@home
https://foldingforum.org/
Hi Xerxes_Phi, welcome to the forum!Xerxes_Phi wrote:How do I shutdown the WinSMP when I need to restart/shutdown my computer, without jeopardizing the WU?
I presume the WinSMP client is the multi-processor console version?Xerxes_Phi wrote:How do I shutdown the WinSMP when I need to restart/shutdown my computer, without jeopardizing the WU?
Correct.DieselDragon wrote:I presume the WinSMP client is the multi-processor console version?
Absolutely.DieselDragon wrote:I've chosen to use the single processor console client on my own machine (Win32 Console version 5.04b) and I'd like to ask if the same solution to the above question (Pressing [Ctrl]+C) can be used on what I'm running.
Don't know.DieselDragon wrote:Additionally, is there a way that I can begin a "safe" shutdown from another process, maybe by creating a "flag" file? I'm planning to control my Folding client by using a VBScript (Which manages several user-level processes) and I'd rather shut down the client properly as opposed to simply "Killing" the process in VBScript.
I suppose I could do, although I'm not currently used to starting and stopping services from scripts in such a manner. I generally prefer to deal with console level applications where I can, but mainly as a throwback to my DOS days!7im wrote:Install the v5.04 console client as a service. Then stop and start the service in your scripts.
Code: Select all
Option Explicit
'Define initial vars and create the WSH.Shell object used to execute the program:
Dim objFolding
Set objFolding = CreateObject("WScript.Shell")
'To start the program, we'd use the Run command (Obviously! :-D):
Set objFolding = objFolding.Run "C:\Progra~1\Foldin~1\FaH_504b.exe"
'Then to stop the program, we could either do it nicely (Equivalent to the TERM command):
objFolding.Quit
'...Or without the above line, we could just call the following right away and destroy
' it's parent object in the blink of an eye! (Equivalent to the KILL command):
Set objFolding = Nothing