How to call Run() with parameters
Within a literal string, a single double-quote character is represented by two double-quote characters. So try the following instead:
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run """C:\Program Files\Sandboxie\Start.exe"" /box:NetBeans /wait ""C:\Program Files\NetBeans 7.3\bin\netbeans64.exe""", 1, True
Set objShell = Nothing
I like to use the following system to embed quotes :
strCommand = Quotes("C:\Program Files\Sandboxie\Start.exe") & _
" /box:NetBeans /wait " & _
Quotes("C:\Program Files\NetBeans 7.3\bin\netbeans64.exe")
Function Quotes(ByVal strValue)
Quotes = Chr(34) & strValue & Chr(34)
End Function
It's a lot easier to read.