General help and info provided by Helewix.com Webmasters

« The new EE beta is hereExchange 2010 Queue Viewer Error: »

VBS to open application .exe plus additional parameters

09/20/11 | by Helewix.com Webmaster [mail] | Categories: Scripting

VBS to open application .exe plus additional parameters

Let’s say you want to open C:\Program Files\Internet Explorer\TEST.exe with the /S and some INI file using VBScript, there are 2 ways to reference the string this:

SOLUTION 1:
' Declare your executible and any switches below

strAPP = """C:\Program Files\Internet Explorer\TEST.exe"""""" /S """"""xyz.ini""", 6, True>SOLUTION 2:
' Declare your executible and any switches below

CmdLine1 = """C:\Program Files\Internet Explorer\TEST.exe"

CmdLine2 = "/S"

CmdLine3 = """C:\Program Files\Internet Explorer\YOURiniFile.ini"""

strAPP = CmdLine1 & " " CmdLine2 & CmdLine3

Wshell.Run CmdLine,1,True

Plutus Hosting - Quality and Affordable Website and Email Hosting

Permalink

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)
General help and info provided by Helewix.com Webmasters
May 2012
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Blogger Rating

Ads

Plutus Hosting - Quality and Affordable Website and Email Hosting
usafis
Loanfinder SA
AreYouInterested

WiCount

Listing4me

MarisIT

Search

Flag Counter

free counters

XML Feeds

powered by b2evolution free blog software