Advertisement

05.13.2008 at 11:36AM PDT, ID: 23398923
[x]
Attachment Details

Launch Program Using Command Line from VbScript

Asked by Spittman in Scripting Languages, VB Script

I am using VbScript to Launch a program that is located on each users harddrive the program is Located in a folder under the Program Files dir

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "C:\program files\program\program.exe"

It appears the problem is the space in "Program Files" but am unsure how to deal with getting program to run . Thanks for any help.Start Free Trial
[+][-]05.13.2008 at 12:05PM PDT, ID: 21558212

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Scripting Languages, VB Script
Sign Up Now!
Solution Provided By: JesterToo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.13.2008 at 01:16PM PDT, ID: 21558874

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628