We help IT Professionals succeed at work.

vbscript

Frog_1337
Frog_1337 asked
on
626 Views
Last Modified: 2012-05-09
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"
Comment
Watch Question

Commented:
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

Author

Commented:
I keep getting the expected end of statement error.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.