How to create a file to restart the PC.

Опубликовано: 23 Июнь 2026
на канале: Pctutom & more
53
0

Hi, in this video I'll show you how to create a file to restart the computer.
Open the notepad, copy this command: "shutdown -r -t 0" and save the file with the name "PC restart.bat" without the ".txt" extension. "-t" represents the waiting time computer shuts down. Writing "-t 0" we are telling the PC "Restart now without waiting".
If we'd like to set the time after the PC restarts, We need to convert the time to "Seconds" and write it by replacing the 0.
For example, we'd like to set it to restart the pc after 1 hour, and convert it to seconds by completing this operation: "1*60*60". 1 hour for 60 minutes for 60 seconds.
Also, the final command could be like this: "shutdown -r -t 3600".
Thanks for watching this short.
If you liked it, like, subscribe, enable the notifications, comment and share this short.
See you at the next short or video.
Goodbye.

1) Open notepad
2) Write "shutdown -r -t 0" or the seconds that you prefer by replacing "0"
3) Save the file With the name "PC restart.bat" without the ".txt" extension
4) Run the file when you need it.

Command used: shutdown -r -t 0
subscribe to YT channel: https://bit.ly/3X2cIjt