What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » ShellExecute program with parameters

ShellExecute program with parameters
Author: Message:
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: ShellExecute program with parameters
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");

This post was edited on 02-11-2007 at 05:50 PM by vikke.
02-11-2007 05:49 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
ShellExecute program with parameters - by tommy87xxx on 02-11-2007 at 05:33 PM
RE: ShellExecute program with parameters - by deAd on 02-11-2007 at 05:47 PM
RE: ShellExecute program with parameters - by vikke on 02-11-2007 at 05:49 PM
RE: RE: ShellExecute program with parameters - by deAd on 02-11-2007 at 06:02 PM
RE: ShellExecute program with parameters - by tommy87xxx on 02-11-2007 at 05:59 PM
RE: ShellExecute program with parameters - by vikke on 02-11-2007 at 06:14 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On