SmallCraig
MIS
I have a VBA program (macro running in Outlook) which happily (i.e., successfully) executes the following code:
However, when I attempt to run similar code from VBScript:
I get the error:
with the error code 8007002.
For clarification:
"HPCOMMS" is a compiled VB program;
the string
is a command line parameter for the program.
The syntax is correct as far as I could find out, but maybe there is something wrong in there. Hopefully something simple?!
Best reagrds,
SmallCraig![[upsidedown] [upsidedown] [upsidedown]](/data/assets/smilies/upsidedown.gif)
Code:
Shell ("M:\Program Files\HPCOMMS\HPCOMMS hp;setyymm")
However, when I attempt to run similar code from VBScript:
Code:
set Shell = Wscript.CreateObject("Wscript.Shell")
Shell.run "C:\Programs\HPCOMMS\HPCOMMS hp;setyymm", 1, True
I get the error:
Code:
The system cannot find the file specified.
For clarification:
"HPCOMMS" is a compiled VB program;
the string
Code:
hp;setyymm
The syntax is correct as far as I could find out, but maybe there is something wrong in there. Hopefully something simple?!
Best reagrds,
SmallCraig
![[upsidedown] [upsidedown] [upsidedown]](/data/assets/smilies/upsidedown.gif)