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

batch to shutdown computer!

Reply to Message Icon

Original Message
Name: Chris Foo
Date: June 5, 2006 at 05:58:26 Pacific
Subject: batch to shutdown computer!
OS: Win XP Home
CPU/Ram: 2.46GHz
Model/Manufacturer: 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


Report Offensive Message For Removal

Response Number 1
Name: IVO
Date: June 5, 2006 at 06:19:55 Pacific
Subject: batch to shutdown computer!
Reply: (edit)

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.


Report Offensive Follow Up For Removal

Response Number 2
Name: Michael J (by mjdamato)
Date: June 5, 2006 at 06:43:10 Pacific
Subject: batch to shutdown computer!
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 3
Name: Chris Foo
Date: June 5, 2006 at 07:49:44 Pacific
Subject: batch to shutdown computer!
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 4
Name: jhunt303
Date: June 5, 2006 at 08:00:56 Pacific
Subject: batch to shutdown computer!
Reply: (edit)

I suggest scheduling a hibernate


Report Offensive Follow Up For Removal

Response Number 5
Name: Chris Foo
Date: June 5, 2006 at 09:54:16 Pacific
Subject: batch to shutdown computer!
Reply: (edit)

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

Regards
Chris Foo


Report Offensive Follow Up For Removal


Response Number 6
Name: Michael J (by mjdamato)
Date: June 5, 2006 at 12:52:59 Pacific
Subject: batch to shutdown computer!
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 7
Name: IVO
Date: June 5, 2006 at 13:03:39 Pacific
Subject: batch to shutdown computer!
Reply: (edit)

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.


Report Offensive Follow Up For Removal

Response Number 8
Name: Chris Foo
Date: June 6, 2006 at 10:54:32 Pacific
Subject: batch to shutdown computer!
Reply: (edit)

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

Regards
Chris Foo


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: batch to shutdown computer!

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software