Quit application from a batch file.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am writing a DOS batch file to automate NTbackup in Windows 2000
Professional. Outlook.pst won't back up if Outlook is running. I want to
close Outlook from a batch file so that NTbackup can back up the file.

I can use a freeware program called pskill.exe to close Outlook, but it
kills Outlook even if it is in the middle of downloading email, which seems
like a bad idea. Is there a command line method to close Outlook that would
close
the application after allowing it to finish all of it's processes?
 
I don't think so but ask them in one of the outlook groups. Possibly;
http://www.autoitscript.com/autoit3/

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I am writing a DOS batch file to automate NTbackup in Windows 2000
| Professional. Outlook.pst won't back up if Outlook is running. I want to
| close Outlook from a batch file so that NTbackup can back up the file.
|
| I can use a freeware program called pskill.exe to close Outlook, but it
| kills Outlook even if it is in the middle of downloading email, which
seems
| like a bad idea. Is there a command line method to close Outlook that
would
| close
| the application after allowing it to finish all of it's processes?
|
 
Don said:
I am writing a DOS batch file to automate NTbackup in Windows 2000
Professional. Outlook.pst won't back up if Outlook is running. I want to
close Outlook from a batch file so that NTbackup can back up the file.

I can use a freeware program called pskill.exe to close Outlook, but it
kills Outlook even if it is in the middle of downloading email, which seems
like a bad idea. Is there a command line method to close Outlook that would
close
the application after allowing it to finish all of it's processes?

What you need is something that can send Outlook's window a WM_CLOSE
message, the same as clicking on the X in the top corner.

At http://www.beyondlogic.org/solutions/processutil/processutil.htm
there's a tool that can do it, I expect similar ones can be found on
other sites if you google around a bit.
 
Back
Top