![]() |
How to run a batch file wen you close Outlook
Hello!
Is some way to run a script /batch file when user closed Outlook? MS Outlook 2007. |
How to run a batch file wen you close Outlook
You could write a script of your own that:
- starts Outlook - waits for it to close - runs what ever you want Use that script to run Outlook as opposed to any other shortcuts or menu entries "gamul" wrote in message ... Hello! Is some way to run a script /batch file when user closed Outlook? MS Outlook 2007. |
How to run a batch file wen you close Outlook
Doesn't Outlook have the built-in function of starting scripts during
closing? "Vince Averello [MVP-Outlook]" ... You could write a script of your own that: - starts Outlook - waits for it to close - runs what ever you want Use that script to run Outlook as opposed to any other shortcuts or menu entries "gamul" wrote in message ... Hello! Is some way to run a script /batch file when user closed Outlook? MS Outlook 2007. |
How to run a batch file wen you close Outlook
gamul wrote:
Is some way to run a script /batch file when user closed Outlook? MS Outlook 2007. Why start a new thread when you're already discussing this same question in another? -- Brian Tillman [MVP-Outlook] |
How to run a batch file wen you close Outlook
There's a possibility that you could add code to the Application_Quit()
event in the VBA editor but you'd still have to code it yourself "gamul" wrote in message ... Doesn't Outlook have the built-in function of starting scripts during closing? |
How to run a batch file wen you close Outlook
"Brian Tillman" ... gamul wrote: Is some way to run a script /batch file when user closed Outlook? MS Outlook 2007. Why start a new thread when you're already discussing this same question in another? -- Brian Tillman [MVP-Outlook] Sorry, I thought, that old thread nobody reads already. |
How to run a batch file wen you close Outlook
"Vince Averello [MVP-Outlook]" ... There's a possibility that you could add code to the Application_Quit() event in the VBA editor but you'd still have to code it yourself "gamul" wrote in message ... Doesn't Outlook have the built-in function of starting scripts during closing? So as recommended me user Gordon (in different thread) I wrote VBA script, which copies files .PST to or from net. I would like to start this script every time when user logs in to computer as well as when Outlook switches off. There's a possibility that you could add code to the Application_Quit() Please, continue with this think. |
How to run a batch file wen you close Outlook
" ... "Vince Averello [MVP-Outlook]" ... There's a possibility that you could add code to the Application_Quit() event in the VBA editor but you'd still have to code it yourself "gamul" wrote in message ... Doesn't Outlook have the built-in function of starting scripts during closing? So as recommended me user Gordon (in different thread) I wrote VBA script, which copies files .PST to or from net. I would like to start this script every time when user logs in to computer as well as when Outlook switches off. There's a possibility that you could add code to the Application_Quit() Please, continue with this think. Ok. It with my tests results, that this can be made across macro in Outlook (thanks Vince Averello): Sub Application_Quit() Dim RetVal RetVal = Shell("D:\temp\mm.cmd", 0) End Sub mm.cmd looks so: D:\temp\proc.vbs It works! It during starting Outlook, was can this make (how Brian Tillman advised in different thread) creating shortcut starting Outlook which will look so: call D:\temp\proc.vbs "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" I thank for help with all. I greet. |
All times are GMT +1. The time now is 03:39 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com