HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP > Windows XP Basics

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-08-2007, 08:21 PM
nomad
 
Posts: n/a
Default How to close windows xp when app closes?

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

Reply With Quote
Sponsored Links
  #2  
Old 08-08-2007, 11:50 PM
Vanguard
 
Posts: n/a
Default Re: How to close windows xp when app closes?

"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.

Reply With Quote
  #3  
Old 08-09-2007, 12:26 AM
Doug Knox - [MS-MVP]
 
Posts: n/a
Default Re: How to close windows xp when app closes?

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
--------------------------------
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.
>


Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
windows explorer closes Mr. Krümel Windows Vista 0 06-27-2007 12:14 PM
Windows Explorer has encountered a problem and needs to close... John Windows XP 2 06-08-2007 03:20 PM
Windows will not close on desktop Ice Pik Windows Vista 5 05-23-2007 09:54 PM
Windows Media Player: Closes, but Doesn't Shut Down J. Danniel Windows Vista 1 05-07-2007 10:10 AM
Windows Task Master wont close Dawn Chorus Windows XP 1 04-19-2007 12:58 PM


All times are GMT. The time now is 09:37 AM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger