Saturday 9 April 2011

*restart & log-off your computer with batch file

Today we shall see some tricks to restart & log-off your computer by clicking on a file that you will be creating, using notepad or any other text editor.                         

How to use batch file (.bat) to restart your computer
Open Notepad and create a batch file. Save it as .bat formate.


cd/
shutdown -r -t xxxx


where "-r" is for restart, "-t" is the time & "x"  is the time in seconds after which the computer shuts down. 
As soon as someone clicks on this .bat file, these below popup’s will be displayed.





How to use batch file (.bat) to log-off your computer
pen Notepad and create a batch file. Save it as .bat formate.


cd/
shutdown -r -t xxxx


where "-l" is for log-off, "-t" is the time & "x"  is the time in seconds after which the computer shuts down. 
As soon as someone clicks on this .bat file, these below popup’s will be displayed.






Note:- These type of files are being sent by some anonymous people in IMs and also as attachments in emails. This could create some irritating problem and you may loose some data on your computer that you have not saved. So be careful when you get a file with .bat file extension. Better not to click on it.

No comments:

Post a Comment