Computing.Net > Forums > Programming > batch to shutdown computer!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch to shutdown computer!

Reply to Message Icon

Name: Chris Foo
Date: June 5, 2006 at 05:58:26 Pacific
OS: Win XP Home
CPU/Ram: 2.46GHz
Product: Intel
Comment:

Dear Mechanix2Go;

I am looking for a batch file like the one you had write for me to download update files. It works cool.

Now I would like a batch that shutdown my PC when a download is completed. For example I use a bittorrent and direct links for download. Once these complete, I want the PC to shut down the pC. do you think that is possible?

Regards
Chris Foo



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: June 5, 2006 at 06:19:55 Pacific
Reply:

I do not think M2 will hate me if I suggest you the following:

Close your batch coding

ShutDown -s

and your PC will stop itself.


0

Response Number 2
Name: Michael J (by mjdamato)
Date: June 5, 2006 at 06:43:10 Pacific
Reply:

The proble, however, is that you would have to initiate it manually. Thre's no way for the batch file to know when the download has completed.

Michael J


0

Response Number 3
Name: Chris Foo
Date: June 5, 2006 at 07:49:44 Pacific
Reply:

Thats what I think too that batch file wont know when it complete. I just thought of batch coz I want my computer off within certain hours. May be batch cant do this!

Thanks for your reply guys.

Regards
Chris Foo


0

Response Number 4
Name: jhunt303
Date: June 5, 2006 at 08:00:56 Pacific
Reply:

I suggest scheduling a hibernate


0

Response Number 5
Name: Chris Foo
Date: June 5, 2006 at 09:54:16 Pacific
Reply:

hibernate? I heard before using hibernate mode is not good for laptop!

Regards
Chris Foo


0

Related Posts

See More



Response Number 6
Name: Michael J (by mjdamato)
Date: June 5, 2006 at 12:52:59 Pacific
Reply:

You could just as easily schedule a shutdown. But, again, what if your download is not complete. Is the applicatin you use capable of resuming the download if it is terminated unexpectedly? Perhaps there are other bittorrent apps that have the ability to shut down the PC when the download is complete.

Michael J


0

Response Number 7
Name: IVO
Date: June 5, 2006 at 13:03:39 Pacific
Reply:

A (indirect) way to enable the batch to be aware of the download's end is to costantly (say every five minutes) monitor the files' size and presence in the target folder.

If the files' size/number does not change since the last snapshot, the download is supposed to be terminated and then the shutdown command is issued.


0

Response Number 8
Name: Chris Foo
Date: June 6, 2006 at 10:54:32 Pacific
Reply:

Emm.... Thats a good point too. Thanks a lot guys!!

Regards
Chris Foo


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: batch to shutdown computer!

Batch file shutdown timer www.computing.net/answers/programming/batch-file-shutdown-timer/13959.html

batch to change password www.computing.net/answers/programming/batch-to-change-password/15008.html

Batch to Ping www.computing.net/answers/programming/batch-to-ping/17265.html