Maybe I am missing some relevant point, but I am unable to start
interactively Outlook from a .vbs script
I used a syntax like:
set myShell = CreateObject("Wscript.Shell")
err.clear
myShell.run "c:\Program Files\Microsoft Office\Office\outlook.exe"
msgbox err.number
but it does not work. No Outlook windows is created and the error code I get
sounds like -2147024894
I used the same syntax to run another .exe file and it works. I used the
same syntax to start Excel and it does not work...
The path looks to be ok.
The above piece of code is the latest part of a login script, it is supposed
to start Outlook, keep Outlook running and terminate.
Can anybody please help me detecting my mistake?
Shoud I create an Outlook.Application instead? If so, how can I make te
script terminate while Outlook is running?
Regards
Marius