Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 18-02-2007, 08:44 AM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Sep 2006
Posts: 44
Default batch files


i have heard that u can use batch files to automate tasks..can someone write me a batch file which will shutdown my system (win2000) at the following intervals
9:45 am
10:30 am
11:40 am
1:45 pm
2:30 pm

will it be enough if i click on the batch file once? can i delete it later, after clicking on it?
Suhas M is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 18-02-2007, 08:54 AM   #2 (permalink)
Still Shining!
 
Lucky_star's Avatar
 
Join Date: Nov 2006
Location: Up 'n' above
Posts: 1,174
Default Re: batch files

Why don't you use auto shutdown softwares like Autopoweron and Shutdown
__________________
Simplicity is the ultimate Sophistication
HP dv6 6121tx: Core i7 2630 QM | 4GB | AMD 6770M 2GB GDDR5 | 640 GB
Nokia N86 8MP
Lucky_star is offline  
Old 18-02-2007, 08:59 AM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Sep 2006
Posts: 44
Default Re: batch files

i don't want to use these softwares, thats why i'm going for batch files
Suhas M is offline  
Old 18-02-2007, 09:04 AM   #4 (permalink)
Still Shining!
 
Lucky_star's Avatar
 
Join Date: Nov 2006
Location: Up 'n' above
Posts: 1,174
Default Re: batch files

For shutting down or restarting, this might help.

Code:
shutdown.exe -s -t xx
Here s stands for shutdown and t stands for the number of seconds in xx before shutdown.

I don't know how to set a particular time for that using DOS commands.

You can make a batch file out of it and later use Windows Scheduler to run it at your required times.
__________________
Simplicity is the ultimate Sophistication
HP dv6 6121tx: Core i7 2630 QM | 4GB | AMD 6770M 2GB GDDR5 | 640 GB
Nokia N86 8MP

Last edited by Lucky_star; 18-02-2007 at 09:10 AM.
Lucky_star is offline  
Old 18-02-2007, 02:13 PM   #5 (permalink)
In The Zone
 
ApoorvKhatreja's Avatar
 
Join Date: Aug 2006
Location: Delhi
Posts: 229
Default Re: batch files

Code:
@ echo off
shutdown -s -t xx
Replace the xx with the time limit after which computer is to be shutdown. If you want immediate shutdown, with no delay, set the xx value to 0.
__________________
http://apoorvkhatreja.blogspot.com
ApoorvKhatreja is offline  
Old 18-02-2007, 03:12 PM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Sep 2006
Posts: 44
Default Re: batch files

is possible to shutdown the system once every hour?
Suhas M is offline  
Old 18-02-2007, 04:15 PM   #7 (permalink)
In The Zone
 
ApoorvKhatreja's Avatar
 
Join Date: Aug 2006
Location: Delhi
Posts: 229
Default Re: batch files

Yes. Save this as anything.bat. Then using FDM (Free Download Manager), schedule it to run every 1 hours.
__________________
http://apoorvkhatreja.blogspot.com
ApoorvKhatreja is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Piyush
- by icebags
- by clinton
- by Charan

Advertisement




All times are GMT +5.5. The time now is 11:59 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2