Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,154,007 members, 7,821,531 topics. Date: Wednesday, 08 May 2024 at 02:24 PM

How To Turnoff PC After X Time - Computers - Nairaland

Nairaland Forum / Science/Technology / Computers / How To Turnoff PC After X Time (658 Views)

How I Transferred Files From My Phone To Pc After Having A Dead Usb Port (2) (3) (4)

(1) (Reply)

How To Turnoff PC After X Time by bigdrey(m): 11:34pm On Jan 19, 2016
Are you downloading long files at night and worried who will turn off your PC when you slept? It should not give you headache let’s little hack into windows to turnoff your PC after desired time.

A Batch file

A batch file: this is a text file with extension (.bat), It contains a sequence of commands for computer operating system. A batch file is usually created for command sequences for which a user has a repeated need.

You can create a batch file using Notepad and choose Save as filename.bat where filename is the name of the file and .bat is the extension (make sure the file has an extension of (.bat) without brackets.

Command

After you created your .bat file place this code in it

@echo off
shutdown -s -t 1800


Save the file (ctrl + s) , You can run the batch file program by click on the file and the computer will prompt a warning
The computer will shutdown 30 minutes (1800 seconds) after running the batch file.

To cancel a shutdown initiated by that batch file, you can go to Start -> Run and type:

shutdown -a

Or you can put the code in separate batch file then run it to cancel a shutdown.

Hope this is simple and useful, before you download malicious software please ask us for solution


Source: http://blog.windrey.com/turnoff-pc-after-x-time/
Re: How To Turnoff PC After X Time by bigdrey(m): 3:17pm On Jan 20, 2016
Lalasticlala

(1) (Reply)

Easily Browse Blocked Webiste / Attention Urgently Needed / ============front End Development==============

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.