Showing posts with label computer. Show all posts
Showing posts with label computer. Show all posts

What is Batch Script

What is Batch Script
A batch script is a text file that contains certain commands that are executed in sequence. It is used to simplify certain repetitive tasks or routines in the Windows, DOS and OS/2 operating systems, and is also used in complex network and system administration.
A batch script has a file extension of .bat .cmd or .btm.



Automatically and Schedule Shutdown Your Computer System

Automatically Shutdown your Computer after specific time using Windows Command Prompt You do not need a third party software to automatically shutdown your computer, because you can schedule your system shutdown using the command prompt.
The SHUTDOWN command does everything. The command can be used to shutdown, restart, logoff and hibernate your local computer or a remote PC connected to your network.
Follow the Steps:

How to schedule system shutdown
Open the “cmd” window, to open the command prompt, press Win key + R, type cmd and hit Enter 2. Now type the following command, the below command shuts down the computer after 1800 seconds {30 minutes}
Shutdown /s /t 1800 – This command will shut down you computer in 30 minutes
Shutdown /s /f /t 1800 – This command will force shut down your computer in 30 minutes, which means all running applications will be closed without getting on notification

Auto Shutdown PC Using CMD
Shutdown is the common command to perform Shutdown, restart, logoff or hibernate operation
/s – means, shutdown other commands are listed below  /r – restart   /p – shutdown without a warning  /h – hibernate   /l – logoff    /a – abort a scheduled shutdown  /t command is used to set the timer.
Aborting a scheduled shutdown
If you want to cancel a scheduled shutdown you can type the following command in the cmd window shutdown /a