General discussion

Locked

Use a batch file to shut down a system

By webdever ·
Regarding Tech Tips Newsletter's above-mentioned article, how would you revise this batch file to shut down a computer at a specified time?

"If you write batch files for maintaining your systems and need to shut down a computer at the end of the procedure, add this command to the end of the file:

Rundll.exe user.exe,exitwindows"

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

hrmmm

by Able-Admin In reply to Use a batch file to shut ...

I simply use the command "shutdown"

ie.

at 6:00 /every:m,t,w,th,f,s,su "shutdown /l /r /y /c"
Where /l tells it to shutdown the local machine, /r to reboot, /c to close all programs and /y to avoid having to say yes to questions.

Collapse -

oops

by Able-Admin In reply to hrmmm

sorry, take out those quotes around shutdown

Collapse -

GREAT!

by webdever In reply to oops

Thank you so much! I appreciate the quick response and the helpful info!

Back to Windows Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums