What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » experimenting with Wscipt.shell

experimenting with Wscipt.shell
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: experimenting with Wscipt.shell
Yes, you can create a script which reads the output of shelled commands (commands executed in a so called 'DOS box'). You could use some command line redirection 'tricks' or you could Windows APIs to do the job (better, more robust way). But that wont be easy to understand if you're not an experienced scripter though.

For example, to shut down your computer, instead of executing an external program (which you're not certain it will exist on the system, plus it is limited in what it can do), you can call the Windows API ExitWindowsEx, or InitiateSystemShutdownEx, etc. The possible Windows APIs to be used are listed here.

Also, in many cases, when people ask for something like that (how to read the ouput of external commands), there are many times better solutions which do not involve running a 'DOS box'. You better avoid 'DOS boxes' if you can.

So, what are you attempting to do or what is the reason behind asking that question?


This post was edited on 03-31-2010 at 11:34 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-31-2010 11:13 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
experimenting with Wscipt.shell - by scripto on 03-30-2010 at 11:35 AM
RE: experimenting with Wscipt.shell - by matty on 03-30-2010 at 01:11 PM
RE: experimenting with Wscipt.shell - by Spunky on 03-30-2010 at 05:00 PM
RE: experimenting with Wscipt.shell - by matty on 03-30-2010 at 05:05 PM
RE: experimenting with Wscipt.shell - by scripto on 03-30-2010 at 05:57 PM
RE: experimenting with Wscipt.shell - by matty on 03-30-2010 at 06:28 PM
RE: experimenting with Wscipt.shell - by djdannyp on 03-30-2010 at 06:36 PM
RE: experimenting with Wscipt.shell - by scripto on 03-30-2010 at 07:05 PM
RE: experimenting with Wscipt.shell - by matty on 03-30-2010 at 07:10 PM
RE: experimenting with Wscipt.shell - by scripto on 03-30-2010 at 07:46 PM
RE: experimenting with Wscipt.shell - by CookieRevised on 03-31-2010 at 11:13 AM
RE: experimenting with Wscipt.shell - by scripto on 03-31-2010 at 07:52 PM
RE: experimenting with Wscipt.shell - by CookieRevised on 04-01-2010 at 02:37 AM
RE: experimenting with Wscipt.shell - by scripto on 04-01-2010 at 05:57 PM
RE: experimenting with Wscipt.shell - by CookieRevised on 04-02-2010 at 10:39 AM
RE: experimenting with Wscipt.shell - by scripto on 04-02-2010 at 12:13 PM
RE: experimenting with Wscipt.shell - by CookieRevised on 04-02-2010 at 01:44 PM
RE: experimenting with Wscipt.shell - by scripto on 04-02-2010 at 02:52 PM
RE: experimenting with Wscipt.shell - by SmokingCookie on 04-02-2010 at 06:42 PM
RE: experimenting with Wscipt.shell - by CookieRevised on 04-02-2010 at 11:04 PM
RE: experimenting with Wscipt.shell - by scripto on 04-03-2010 at 12:04 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