Link to home
Start Free TrialLog in
Avatar of Frog_1337
Frog_1337

asked on

vbscript

I need to run the following command from a VBscript. I keep getting errors when I try the cmd /k method or the oshell.exec method

D:\Program Files\HP\HP BTO Software\bin>opcmsg.exe severity=normal application=test object=test msg_text="this is a test"
Avatar of exx1976
exx1976
Flag of United States of America image

Set oWS = createobject("Wscript.Shell")
oWS.Run "D:\Program Files\HP\HP BTO Software\bin>opcmsg.exe severity=normal application=test object=test msg_text="""this is a test"""

HTH,
exx
Avatar of Frog_1337
Frog_1337

ASKER

I keep getting the expected end of statement error.
ASKER CERTIFIED SOLUTION
Avatar of exx1976
exx1976
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial