Friday, August 19, 2011

Killnotes.exe doesn't support silent commands. How to kill notes silently.

If you've bee around Lotus Notes as long as I have you learn to hate the fact that when notes crashes you usually have to reboot to clear out all the stuck notes related files. That was until someone at IBM crafted up Killnotes.exe which looks for any notes processes and threads still in use then will kill them off.  This is great for the occasion when you Lotus Notes crashes and you want to reopen without rebooting..

The problem is if we want to upgrade/deploy Lotus Notes and use Killnotes.exe to terminate Lotus Notes before upgrading. We can't do this out without having some user interaction. A better solution instead is to use the inbuilt NSD.exe of notes to shutdown lotus notes.

If you want to script it here it is;

set WshShell = CreateObject("Wscript.Shell")
TerminateNotes = WshShell.Run ("c:\notes\nsd.exe -kill -nolog -ini c:\notes\notes.ini",1,True)

If you are running this through a deployment system you will find you need to include the -nolog and -ini options or the script will error trying to locate the notes.ini because its running under  the system account and not the local user.





No comments :

Post a Comment