I am retiring this website. Please visit my new blog here for all things tech-related: goo.gl/d7D1J

Thursday, April 9, 2009

Batch - Shutdown Computer

This batch file is constructed in a way to shutdown the computer in use. You can customize it in a few ways. First, here are the commands:

shutdown -s -f -t 120 -c “hahah”


The -s after shutdown is for the command to shutdown and not log-off or anything else. The -f will force shutdown any open programs. You can edit that out if you wish not to allow that. The -t is for the time it takes before the computer will be shutdown. You then put a time (in seconds) you wish for this to occur. The -c is for a message, that’s then enclosed in quotes. You should know by now (after reading previous posts) that to run this file you need to type it in notepad and save it as a .bat file.

No comments:

Post a Comment

Web Analytics