GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Application Launcher in VBS Opus Script


#1

Hello,

I am straggling to have the right amount of parentheses in order to accomplish the following:

I would like to make a "Program Launcher" in Opus VBS script like the following:

Dim TheProgramPath
Dim TheArgs

TheProgramPath = "TheDrive:\The Root Folder Path with Spaces\The Next Path etc\TheProgramName.exe"
TheArgs = "-i -j -k"

AppLauncher(TheProgramPath,TheArgs)

Function AppLauncher(ExecutablePath,Args)

Dim Execute
set Execute = DOpus.NewCommand

Execute.RunCommand("@sync:ExecutablePath Args")

End Function


#2

Not tested, just guessing:

Execute.RunCommand("@sync: " & ExecutablePath & " " & Args)