Quit application from a batch file.

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?
 
D

Dave Patrick

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?
|
 
L

Lucvdv

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top