PDA

View Full Version : stop the current build from scheduled tasks


ktak
10-12-2009, 03:20 PM
I am using MS Scheduled Tasks to run the build with this command :
"VisBuildPro.exe" /b E:\BuildScripts\AutoBuild.bld

The build runs perfectly. The problem is when i want to stop the build. (Right click on task > End Task ). It doesn't close VBP. Instead a prompt asking "Do you want to stop the current build?" comes out. Also even during the prompt is visible, the build keeps continuing.

Is there a way to 'force' close/kill visual build pro when it received the end task call?

kinook
10-12-2009, 05:03 PM
Just close VBP itself instead of ending the scheduled task. Or kill the process with Task Manager.

ktak
10-12-2009, 06:44 PM
I forgot to add that I am starting/stopping the Scheduler remotely. So I can't manually close VBP or kill it from task manager.

kinook
10-12-2009, 07:23 PM
Use schtasks, taskkill or the Kill Process action.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/schtasks.mspx?mfr=true

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/taskkill.mspx?mfr=true

http://www.kinook.com/VisBuildPro/Manual/killprocessaction.htm