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.
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.