What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Calling executable?

Calling executable?
Author: Message:
juhl
New Member
*


Posts: 1
Joined: Sep 2007
O.P. Huh?  Calling executable?
Hi,

Is it possible to make calls directly to an executable and read the output coming from stdout?

- Juhl
09-29-2007 03:57 PM
Profile E-Mail PM Find Quote Report
Hanumanji
New Member
*


Posts: 5
Joined: Jan 2005
RE: Calling executable?
I don't know... but you can try this:


code:
var Executable = "Dir C:\\*.*";
var OutputFile = "C:\\Dump.txt";

new ActiveXObject("Wscript.Shell").Run("Cmd /c "+ Executable+" > " + OutputFile);

var Output = new ActiveXObject("Scripting.FileSystemObject").OpenTextFile(OutputFile).ReadAll();
Debug.Trace( Output ) ;
new ActiveXObject("Scripting.FileSystemObject").DeleteFile(OutputFile);


I did not tested it... But.. it should work...
09-30-2007 09:15 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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