Friday 15 May 2015

Run Application with more than one arguments VBScript -



Run Application with more than one arguments VBScript -

i need run application 2 arguments , wait close. i'm confusing how long there spaces between arguments.

i want this:

app.run ("target.exe",/s /n,true)

true means wait

just include args in string:

with createobject("wscript.shell") .run "target.exe /s /n", 1, true end

if need specify total path (with spaces) exe, things little trickier:

with createobject("wscript.shell") .run chr(34) & "c:\some folder\target.exe" & chr(34) & " /s /n", 1, true end

vbscript

No comments:

Post a Comment