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!
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?
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
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.
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!!
Summary: Hello, I registered here asking for a bit of help. First off I am very new to this language and i need to make a little program off a batch file. I found out how to shutdown the computer using a batch...
Summary: I am looking for a batch file what can stop a service on a server, Then change the password associated with the service. Actualy, I can get the service to stop and start but not change the password. ...
Summary: Hello! I have a lot of machine inactives in the Domain, i have a list of computer (Inactive) and i want a batch to do: ping a computer from a list (example: ping WASDGuido) ping -a the WASDGuido'ip I...