Hi guys have you ever tried to Shut down your friends or neighbor or your computer using notepad.If not in this tutorial i am gonna show how to shutdown the PC/laptop just writing a simple batch code in notepad.You can use this ticks to prank your friends.So let's see how to do this.
1.Open Notepad.(press windows+r and type notepad and hit enter).
2.Now in the notepad copy the below code.
3.Save the code in .bat format as shown below.
4.After saving the file,you will see a batch file as below.
5.Double click on the batch file to shut down the PC.
6.Done.
That's it friends i hope you enjoyed the article,if you have any queries regarding any topic feel free to ask us through comments.
Steps:
2.Now in the notepad copy the below code.
Source code:
@echo off
title Yashwanth:worldtech360
echo Hi friends do you like this trick?
echo Enter(Y/N)?
pause
echo You mean no than i will shutdown your PC in 5 seconds.
shutdown -s -t 05
Note:
- -s : shutdown.
- -r : Restart.
- -l : Logoff.
- -t : Time(After how many seconds should PC turn off).
- -a : aborting the shutdown of PC
4.After saving the file,you will see a batch file as below.
5.Double click on the batch file to shut down the PC.
6.Done.
That's it friends i hope you enjoyed the article,if you have any queries regarding any topic feel free to ask us through comments.
Comments
Post a Comment