PDA

View Full Version : Close / Kill BCompare.exe cleanly


MasterMG
31-May-2011, 06:58 PM
Hello,

Right now, I am spawning the following task from the Task Scheduler in Windows 7 on several machines at different sites.

"c:\Program Files\Beyond Compare 3\BComp.exe"@C:\CatalystScripts\SynciVaultNAS2iVaultHQ.txt

In effect, the script I wrote is syncing data across a VPN connection back to our HQ SAN.

It is working really well, however, the task even though I set it to kill after 12 hours, doesn't seem to close with the Windows Task settings...

Right now, I wrote a quick script that will KILL the process in the AM, however it just KILLS the BCOMPARE.EXE, and doesn't end the process cleanly.

I am wondering if there is any way to pass the BCompare.exe a command that would in effect, press the 'cancel' button, so that it would be able to close what it is doing, and write to the log file properly.

Thanks in advance.

Aaron
01-Jun-2011, 08:33 AM
Hello,

In the Tools menu -> Options, Scripts section you can select to Close when finished. You can also pass this in as a command line parameter: /closescript
If the script is running remotely and you do not want the window to pop up at all, you can use the /silent flag instead (though please note this will suppress any error or prompt dialogs as well, and you will need to review the log for any feedback on the script actions that occurred.)

How does that work for you?

In your actual command line, is there a space between the .exe and the @ text? If not, I would not expect the call to launch Beyond Compare.