How to close windows xp when app closes?

  • Thread starter Thread starter nomad
  • Start date Start date
N

nomad

Hi,

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?

Appreciate the help
 
in message
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.
 
This would only work with two conditions:

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
 
Back
Top