GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Application Launcher in VBS Opus Script



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"


Function AppLauncher(ExecutablePath,Args)

Dim Execute
set Execute = DOpus.NewCommand

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

End Function


Not tested, just guessing:

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