Fun Batch File Codes

PS Don't forget to make sure that you have to write these codes in "notepad" from the accessories in the start menu and save it as ".bat" at the end for ex: "anand.bat"

Code #1- The matrix look alike code

@echo off
color a
:top
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto:top

Code #2- E-bomb

@echo off
:A
start iexplore <enter website URL here ex. google.com>
goto:A


Code #3- Manual message making SPAMMER!

@echo off
:A
msg * <insert message here>
goto:A

Code #5- Current date and time code

@echo off
:A
echo Here is the current time %date% %time%
goto:A

Code #6- Black screen march (makes multiple command prompts and overloads computers memory)

@echo off
:A
Start
goto:A

Code #7- Simple text book diary log

  1. type ".LOG" in caps and all
  2. save as ".LOG.txt"
  3. than simply open the file than walah 

PS this one does not need to be saved as ".bat"

Code #8- Getting your self automated chat

dim fname
fname=inputbox(" Hi whats your name?")
fname=inputbox(" Whats up?")
fname=inputbox(" Thats kool.")

Ps Save as .vbs not .bat and also you can change text inside the quotes 

Code #9- code for opening and closing your CD drive

Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count = 1 then
for i = 0 to colCDROMS.Count - 1
colCDROMs.Item(i).Eject
colCDROMs.Item(i).Eject
Next ' cdrom
end if save as .vbs
Ps save as .vbs not .bat

Code #10- shutdown computer
avidemux2_cli --run j-1.js --run j-2.js --end
shutdown.exe -s -t 00
ps you can change the "00" to how ever many seconds you want ex. "74" so than it will be 74 seconds

Try these codes at your own risk. I'm not responsible for any damage caused to your system while executing some of above code. Enjoy :)

Comments

Popular posts from this blog

Android Sudoku Game Project With Source Code