I have an application (Newsbin) which closes once it has finished
downloading. WHen the app closes, I would like to be able to tell
WIndows XP to shut down. Is this possible?
"nomad" wrote in message
news:1186604516.842402.134260@r34g2000hsd.googlegr oups.com...
> I have an application (Newsbin) which closes once it has finished
> downloading. WHen the app closes, I would like to be able to tell
> WIndows XP to shut down. Is this possible?
Use a .bat file to both run Newsbin and to run the 'shutdown' command.
Run 'shutdown /?' to see its options.
1) Use START in the BAT file to start Newsbin and use the /WAIT statement,
to wait for Newbins return code
2) Newsbin only sends a return code when it exits. Many programs send a
return code to indicate a successful launch.
START NEWSBIN /WAIT
SHUTDOWN -F -S -T 60
--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart
Display\Security
Win 95/98/Me/XP Tweaks and Fixes http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
"Vanguard" <vanguard.x@comcast.net> wrote in message
news:%23nJNrbh2HHA.5164@TK2MSFTNGP05.phx.gbl...
> "nomad" wrote in message
> news:1186604516.842402.134260@r34g2000hsd.googlegr oups.com...
>> I have an application (Newsbin) which closes once it has finished
>> downloading. WHen the app closes, I would like to be able to tell
>> WIndows XP to shut down. Is this possible?
>
>
> Use a .bat file to both run Newsbin and to run the 'shutdown' command. Run
> 'shutdown /?' to see its options.
>