Shoutbox

Execute something remotely??? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Execute something remotely??? (/showthread.php?tid=77905)

Execute something remotely??? by Suby on 10-01-2007 at 08:24 PM

Hello, I was wondering if its possible to run an exe from a script??

I want a script that I can remotely activate so that I can maybe give a password, then execute the script on the remote computer...

anyone?


RE: Execute something remotely??? by roflmao456 on 10-01-2007 at 08:30 PM

try this :P

code:
function exec(filepath){
var Shell = new ActiveXObject("Shell.Application");
try{
Shell.Run(filepath);
} catch(e) {
Debug.Trace("Can't open " + filepath);
}
}

exec("\C:\\test.exe");


EDIT:

must double backslash to escape the \. so \ becomes \\.