>>Code type in notepad
@echo off
shutdown -r -f -t 00
Form Of Switches
-s :Shuts down the PC.
-l :Logs off the current user.
-t nn :Indicates the duration of delay, in seconds, before performing the action.
-c “messagetext” :Displays a message in the System Shutdown window. A maximum of 127 characters can be used. The message must be enclosed in quotation marks.
-f :Forces any running applications to shut down.
-r :Reboots the PC. ..!!..!
@echo off
shutdown -r -f -t 00
Form Of Switches
-s :Shuts down the PC.
-l :Logs off the current user.
-t nn :Indicates the duration of delay, in seconds, before performing the action.
-c “messagetext” :Displays a message in the System Shutdown window. A maximum of 127 characters can be used. The message must be enclosed in quotation marks.
-f :Forces any running applications to shut down.
-r :Reboots the PC. ..!!..!