Use the ShellExecute API instead, like this:
code:
Interop.Call("shell32.dll", "ShellExecuteW", null, "open", "C:app.exe", "param1 param2", "", SW_SHOWDEFAULT)
quote:
Originally posted by deAd
You must escape the backslashes.
code:
var objShell = new ActiveXObject("Shell.Application");
objShell.ShellExecute('C:app.exe param1 param2');
EDIT: MyBB won't display it properly? fixed..
You're showing the same code
.
I think you mean:
code:
objShell.ShellExecute("C:\app.exe param1 param2");