loading
This is my first instructable so no complaining!
I'd like to thank neodudeman for his instructables, they helped a lot.

In this instructable i will show you some pretty nifty applications with batch commands.

If you have any problems or changes to request just send me an e-mail at jbell@live.co.za
Leave any feedback in the comment section below.

Step 1: Batch Calculator

This is...well... a calculator.
just copy and paste into NOTEPAD and save as calculator.bat
the filename is not important but the extension MUST be saved as " .bat "

@echo off
title Batch Calculator by seJma
color 1f
:top
echo --------------------------------------------------------------
echo Welcome to Batch Calculator by seJma
echo --------------------------------------------------------------
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo --------------------------------------------------------------
pause
cls
echo Previous Answer: %ans%
goto top
pause
exit

Step 2: Folder Protector

This is pretty cool as it requests a password for a folder.
Once you copy it into notepad you must insert your own password and designated folder directory into the designated areas!
NB: THERE ARE TWO PLACES IN WHICH YOU MUST ENTER INFO!!!

@echo off
title Folder Password v1.5
color 0a
set /a tries=3
set password=***ENTER YOUR PASSWORD HERE***
:top
echo.
echo ----------------------------------------------
echo.
echo Folder Password
echo.
echo ----------------------------------------------
echo You have %tries% attempts left.
echo Enter password
echo ----------------------------------------------
set /p pass=
if %pass%==%password% (
goto correct
)
set /a tries=%tries -1
if %tries%==0 (
goto penalty
)
cls
goto top
:penalty
echo Sorry, too many incorrect passwords, initiating shutdown.
start shutdown -s -f -t 35 -c "SHUTDOWN INITIATED"
pause
exit
:correct
cls
echo ----------------------------------------------
echo Password Accepted!
echo.
echo Opening Folder...
echo ----------------------------------------------
explorer ***ENTER FOLDER PATH HERE***
pause

*NOTE: This is not an advanced piece of software, it does not hide or block the destination folder or anything like that so don't get your hopes up.
**Yes, it can now open files with spaces, just use a backslash (\) when typing your filepath.

Step 3: Guessing Game

This is a game in which the computer generates a random number, and you must try to guess it.

@echo off
color 0e
title Guessing Game by seJma
set /a guessnum=0
set /a answer=%RANDOM%
set variable1=surf33
echo -------------------------------------------------
echo Welcome to the Guessing Game!
echo.
echo Try and Guess my Number!
echo -------------------------------------------------
echo.
:top
echo.
set /p guess=
echo.
if %guess% GTR %answer% ECHO Lower!
if %guess% LSS %answer% ECHO Higher!
if %guess%==%answer% GOTO EQUAL
set /a guessnum=%guessnum% +1
if %guess%==%variable1% ECHO Found the backdoor hey?, the answer is: %answer%
goto top
:equal
echo Congratulations, You guessed right!!!
echo.
echo It took you %guessnum% guesses.
echo.
pause

*Note: For the backdoor, type "surf33"

Step 4: Site Selector

This is an application that lets you select from a list of sites.
Feel free to add some of your own sites.

@echo off
color 2f
title Site Selector by seJma
:top
echo ***************************************************************
echo.
echo Site Selector
echo.
echo ***************************************************************
echo.
echo Key: [1] Google - Search Engine
echo [2] Hotmail - Mail Server
echo [3] Yahoo - Search Engine/Mail Server
echo [4] Facebook - Social Networking
echo [5] Myspace - Social Networking
echo [6] CNN - News
echo [7] Weather - Weather
echo [8] WikiHow - A How-To Website
echo [9] Instructables - A How-To Website
echo [10] YouTube - Online Videos
echo [11] Answers - Online Encyclopedia
echo [12] Wikipedia - Online Encyclopedia
echo.
echo [e] Exit
echo.
echo ***************************************************************
echo Enter the number of the website which you would like to go to:
echo.
set /p udefine=
echo.
echo ***************************************************************
if %udefine%==1 start www.google.com
if %udefine%==2 start www.hotmail.com
if %udefine%==3 start www.yahoo.com
if %udefine%==4 start www.facebook.com
if %udefine%==5 start www.myspace.com
if %udefine%==6 start www.cnn.com
if %udefine%==7 start www.weather.com
if %udefine%==7 start www.wikihow.com
if %udefine%==9 start www.instructables.com
if %udefine%==10 start www.youtube.com
if %udefine%==11 start www.answers.com
if %udefine%==12 start www.wikipedia.com
if %udefine%==e goto exit

cls
echo ***************************************************************
echo.
echo Thank You for using Site Selector by seJma
echo.
echo ***************************************************************
echo Type [e] to exit or [b] to go back and select another site.
echo.
set /p udefine=
echo.
echo ***************************************************************
if %udefine%==b goto top
if %udefine%==e goto exit
:exit
cls
echo ***************************************************************
echo.
echo Thank You for using Site Selector by SEjMA
echo.
echo ***************************************************************
pause
exit

Step 5:

This is a fake virus that I designed, it looks pretty convincing if you put it in someone's startup folder.
NB: this batch starts a "60 second till shutdown" script when its done. to abort shutdown click START>RUN:shutdown -a
NB: this does not do anything harmful or destructive to your computer.

***NEW: I've added an extra command that disables themes to make it look more realistic.
@echo off
color 47
net stop themes >nul
title DEEP VIRAL INFECTION!
echo VIRAL INFECTION!!!
echo VIRAL INFECTION!!!
echo VIRAL INFECTION!!!
echo ERROR!!!
echo -
echo virus - TROJAN_DEMOLISHER code #45643676
echo -
echo FIREWALL - FAILED
echo -
echo ANTI-VIRUS - FAILED
echo -
echo IP ADDRESS BREACHED!
echo -
echo VIRUS ATTAINING: ****-****-****-8894
echo -

pause
cls
echo -
echo SCANNING INFECTED AREAS...
echo -

pause

set /a num=0
:repeat1
set /a num=%num% +1
echo %num%
if %num%==100 goto end
goto repeat1
:end
cls
echo -
echo 86.5 PERCENT OF MEMORY INFECTED
echo -
echo INFECTION FATAL!
echo -
echo DELETION OF ENTIRE CONTENTS OF LOCAL DISK C: REQUIRED
echo -

pause
cls
echo -
echo DELETING HARD-DRIVE C:
echo -
dir /s

pause
cls
echo -
echo CONTENTS OF HARD-DRIVE C: ERASED
echo -

pause
cls
echo -
echo SCANNING...
echo -

set /a num1=0
:repeat2
set /a num1=%num1% +1
echo %num1%
if %num1%==100 goto end1
goto repeat2
:end1
cls
echo -
echo 0.00 PERCENT OF HARD-DRIVE INFECTED
echo -
pause

echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR
echo ERROR

pause
cls
title SYSTEM FAILURE
color 17
echo ERROR!
echo -
echo VISUAL MEMORY LOST!
echo -
echo RAM LOST!
echo -
echo CORE PROCESSOR FAILING...
echo -
echo TOTAL SYSTEM CRASH IMMINENT!
echo -
echo -

pause
cls
echo -
echo -
echo -
echo SHUTDOWN COMPUTER NOW TO AVOID RISK OF FIRE!
echo -
echo -
echo -

pause
cls
echo -
echo -
echo -
echo SEEK PROFESSIONAL HELP IMMEDIATLY TO PREVENT FURTHER DAMAGE!
echo -
echo -
echo -
pause
start shutdown -s -t 60 -c "SYSTEM FAILURE<SHUTTING DOWN TO AVOID FURTHER DAMAGE!"
**NB: Type "shutdown -a" in your Run box to abort a system shutdown
***Type "net start themes" to in your Run box to get the themes service working

Step 6: Done

Those are some of my applications that I created using notepad.
Remember to save the notepad as yourfilename.bat
PLEASE let me know if any of the applications don't work.
Feel free to edit, change, and do whatever to them.

If you would like help with any of your Batch programs, message me or send me an e-mail at jbell@live.co.za

If you want to try something offline, I recommend getting Learn Batch File Programming! by John Albert, really simple, easy to follow and great if you want to get better!


Happy BATCHing :D

<p>And this is my new game (I made it today)</p><p>@echo off<br>title COINS<br>color 0a<br>mode con: cols=39 lines=25</p><p>:menu<br>cls<br>echo =======================================<br>echo === COINS ===<br>echo =======================================<br>echo.<br>echo For info type ?<br>echo.<br>echo 1) Singleplayer<br>echo 2) Multiplayer<br>set menuchoice=<br>set /p menuchoice=<br>if %menuchoice% equ 1 goto players_sp<br>if %menuchoice% equ 2 goto players_mp<br>if %menuchoice% equ ? goto info<br>echo.<br>goto menu</p><p>:info<br>cls<br>echo.<br>echo SINGLEPLAYER<br>echo.<br>echo Your task is to beat me. There are<br>echo coins (18 to 40). You have to collect<br>echo 1, 2 or 3 coins. If it's your turn <br>echo and there is only one coin left,<br>echo you lose. GLHF :)<br>echo.<br>echo.<br>echo MULTIPLAYER<br>echo.<br>echo It's the same as singleplayer...<br>echo ...but it's for 2 players ;)<br>echo.<br>echo =======================================<br>echo.<br>echo To report any bugs, please contact me:<br>echo.<br>echo E-mail: kotasekjat@seznam.cz<br>echo Skype: GD ziffdodo2<br>echo.<br>echo.<br>echo Thanks for playing my game!!!<br>pause &gt;nul<br>goto menu</p><p>//SINGLEPLAYER</p><p>:players_sp<br>cls<br>echo.<br>echo =======================================<br>echo === PLAYERS ===<br>echo =======================================<br>echo.<br>echo.<br>set player=<br>set /p player=Player 1 (enter your name): <br>echo.<br>echo Player 2: NPC<br>ping -n 3 localhost &gt;nul<br>cls<br>echo.<br>echo READY?<br>ping -n 2 localhost &gt;nul<br>cls<br>echo.<br>echo GO!<br>ping -n 2 localhost &gt;nul<br>goto game_p1_1</p><p><br>//PLAYER_1</p><p><br>:game_p1_1<br>set limit=<br>set /a limit=%random% %% 18+22<br>goto game_p1_2</p><p>:game_p1_2<br>cls<br>echo.<br>echo Coins left: %limit%<br>echo.<br>echo How many coins do you wanna take? <br>echo.<br>echo.<br>if %limit% equ 1 goto p1_loss_sp<br>set p1=<br>set /p p1= %player%'s turn: <br>if %p1% equ 1 goto p1_1<br>if %p1% equ 2 goto p1_2<br>if %p1% equ 3 goto p1_3<br>if %p1% gtr 3 goto p1_fail</p><p>:p1_1<br>set /a limit=%limit%-1<br>echo.<br>echo YOU TAKE 1 COIN<br>ping -n 2 localhost &gt;nul<br>goto game_pc_check</p><p>:p1_2<br>set /a limit=%limit%-2<br>echo.<br>echo YOU TAKE 2 COINS<br>ping -n 2 localhost &gt;nul<br>goto game_pc_check</p><p>:p1_3<br>set /a limit=%limit%-3<br>echo.<br>echo YOU TAKE 3 COINS<br>ping -n 2 localhost &gt;nul<br>goto game_pc_check</p><p>:p1_fail<br>echo.<br>echo YOU CAN'T TAKE MORE THAN 3 COINS!<br>ping -n 3 localhost &gt;nul<br>goto game_p1_2</p><p><br>//PLAYER_PC</p><p><br>:game_pc_check<br>if %limit% gtr 25 goto game_pc_1<br>if %limit% leq 25 goto game_pc_2<br>if %limit% leq 0 goto p1_loss_sp</p><p>:game_pc_1<br>cls<br>echo.<br>echo Coins left: %limit%<br>echo.<br>echo How many coins do you wanna take? <br>echo.<br>echo.<br>echo NPC's turn: 2<br>echo.<br>echo NPC TAKES 2 COINS<br>set /a limit=%limit%-2<br>ping -n 2 localhost &gt;nul<br>goto game_p1_2</p><p>:game_pc_2<br>//1<br>if %limit% equ 2 goto pc_1<br>if %limit% equ 10 goto pc_1<br>if %limit% equ 18 goto pc_1<br>if %limit% equ 22 goto pc_1<br>if %limit% equ 6 goto pc_2<br>//GAPS_1<br>if %limit% equ 14 goto pc_3<br>//2<br>if %limit% equ 3 goto pc_2<br>if %limit% equ 15 goto pc_2<br>if %limit% equ 11 goto pc_2<br>if %limit% equ 19 goto pc_2<br>//GAPS_2<br>if %limit% equ 7 goto pc_3<br>if %limit% equ 23 goto pc_3<br>//3<br>if %limit% equ 4 goto pc_3<br>if %limit% equ 8 goto pc_3<br>if %limit% equ 12 goto pc_3<br>if %limit% equ 20 goto pc_3<br>if %limit% equ 24 goto pc_2<br>//GAPS_3<br>if %limit% equ 16 goto pc_1<br>//IMPOSSIBLE<br>if %limit% equ 5 goto pc_1<br>if %limit% equ 9 goto pc_2<br>if %limit% equ 13 goto pc_3<br>if %limit% equ 17 goto pc_1<br>if %limit% equ 21 goto pc_2<br>if %limit% equ 25 goto pc_3<br>//PC_LOSS / PLAYER_1 WIN<br>if %limit% equ 1 goto pc_loss<br>//PC_WIN<br>if %limit% leq 0 goto p1_loss</p><p>:pc_3<br>cls<br>echo.<br>echo Coins left: %limit%<br>echo.<br>echo How many coins do you wanna take? <br>echo.<br>echo.<br>echo NPC's turn: 3<br>echo.<br>echo NPC TAKES 3 COINS<br>set /a limit=%limit%-3<br>ping -n 2 localhost &gt;nul<br>goto game_p1_2</p><p>:pc_1<br>cls<br>echo.<br>echo Coins left: %limit%<br>echo.<br>echo How many coins do you wanna take? <br>echo.<br>echo.<br>echo NPC's turn: 1<br>echo.<br>echo NPC TAKES 1 COINS<br>set a limit=%limit%-1<br>ping -n 2 localhost &gt;nul<br>goto game_p1_2</p><p>:pc_2<br>cls<br>echo.<br>echo Coins left: %limit%<br>echo.<br>echo How many coins do you wanna take? <br>echo.<br>echo.<br>echo NPC's turn: 2<br>echo.<br>echo NPC TAKES 2 COINS<br>set /a limit=%limit%-2<br>ping -n 2 localhost &gt;nul<br>goto game_p1_2</p><p>:pc_loss<br>cls<br>echo.<br>echo =======================================<br>echo CONGRATULATIONS<br>echo =======================================<br>echo.<br>echo %player% wins!<br>echo.<br>set again=<br>set /p again=Do you want to play again? -<br>if %again% equ yes goto player<br>if %again% equ YES goto player<br>if %again% equ no goto exit<br>if %again% equ NO goto exit<br>exit</p><p>:p1_loss_sp<br>echo.<br>NPC wins!<br>echo.<br>echo You can try your luck again, %player%!<br>echo.<br>set again=<br>set /p again=Wanna try your luck again? -<br>if %again% equ yes goto player<br>if %again% equ YES goto player<br>if %again% equ no goto exit<br>if %again% equ NO goto exit<br>exit</p><p>//MULTIPLAYER</p><p>:players_mp<br>cls<br>echo.<br>echo =======================================<br>echo === PLAYERS ===<br>echo =======================================<br>echo.<br>echo.<br>set player1=<br>set /p player1=Player 1: <br>echo.<br>set player2=<br>set /p player2=Player 2: <br>ping -n 2 localhost &gt;nul<br>cls<br>echo.<br>echo READY?<br>ping -n 2 localhost &gt;nul<br>cls<br>echo.<br>echo GO!<br>ping -n 2 localhost &gt;nul<br>goto game2_1</p><p>:game2_1<br>set limit2=<br>set /a limit2=%random% %% 18+22<br>goto game2_p1</p><p><br>//PLAYER_1</p><p><br>:game2_p1<br>cls<br>echo.<br>echo Coins left: %limit2%<br>echo.<br>echo How many coins do you wanna take? <br>echo.<br>echo.<br>if %limit2% equ 1 goto p1_loss_2<br>if %limit2% leq 0 goto p2_loss_2<br>set p1_2=<br>set /p p1_2=%player1%'s turn: <br>if %p1_2% equ 1 goto p1_1_2<br>if %p1_2% equ 2 goto p1_2_2<br>if %p1_2% equ 3 goto p1_3_2<br>if %p1_2% gtr 3 goto p1_fail_2</p><p>:p1_1_2<br>echo.<br>echo %player1% TAKES 1 COIN<br>set /a limit2=%limit2%-1<br>ping -n 2 localhost &gt;nul<br>goto game2_p2</p><p>:p1_2_2<br>echo.<br>echo %player1% TAKES 2 COINS<br>set /a limit2=%limit2%-2<br>ping -n 2 localhost &gt;nul<br>goto game2_p2</p><p>:p1_3_2<br>echo.<br>echo %player1% TAKES 3 COINS<br>set /a limit2=%limit2%-3<br>ping -n 2 localhost &gt;nul<br>goto game2_p2</p><p>:p1_fail_2<br>echo.<br>echo YOU CAN'T TAKE MORE THAN 3 COINS!<br>ping -n 2 localhost &gt;nul<br>goto game2_p1</p><p>:p1_loss_2<br>echo.<br>echo =======================================<br>echo CONGRATULATIONS<br>echo =======================================<br>echo.<br>echo %player2% wins!<br>echo.<br>echo You can try your luck again, %player1%!<br>echo.<br>set again2=<br>set /p again2=Do you want to play again? -<br>if %again2% equ yes goto players_mp<br>if %again2% equ YES goto players_mp<br>if %again2% equ no goto exit<br>if %again2% equ NO goto exit<br>exit</p><p>//PLAYER_2</p><p><br>:game2_p2<br>cls<br>echo.<br>echo Coins left: %limit2%<br>echo.<br>echo How many coins do you wanna take? <br>echo.<br>echo.<br>if %limit2% equ 1 goto p2_loss_2<br>if %limit2% leq 0 goto p1_loss_2<br>set p2_2=<br>set /p p2_2=%player2%'s turn: <br>if %p2_2% equ 1 goto p2_1_2<br>if %p2_2% equ 2 goto p2_2_2<br>if %p2_2% equ 3 goto p2_3_2<br>if %p2_2% gtr 3 goto p2_fail_2</p><p>:p2_1_2<br>echo.<br>echo %player2% TAKES 1 COIN<br>set /a limit2=%limit2%-1<br>ping -n 2 localhost &gt;nul<br>goto game2_p1</p><p>:p2_2_2<br>echo.<br>echo %player2% TAKES 2 COINS<br>set /a limit2=%limit2%-2<br>ping -n 2 localhost &gt;nul<br>goto game2_p1</p><p>:p2_3_2<br>echo.<br>echo %player% TAKES 3 COINS<br>set /a limit2=%limit2%-3<br>ping -n 2 localhost &gt;nul<br>goto game2_p1</p><p>:p2_fail_2<br>echo.<br>echo YOU CAN'T TAKE MORE THAN 3 COINS!<br>ping -n 2 localhost &gt;nul<br>goto game2_p2</p><p>:p2_loss_2<br>echo.<br>echo =======================================<br>echo CONGRATULATIONS<br>echo =======================================<br>echo.<br>echo %player1% wins!<br>echo.<br>echo You can try your luck again, %player2%!<br>echo.<br>set again2_2=<br>set /p again2_2=Do you want to play again? -<br>if %again2_2% equ yes goto players_mp<br>if %again2_2% equ YES goto players_mp<br>if %again2_2% equ no goto exit<br>if %again2_2% equ NO goto exit<br>exit</p><p>:exit<br>exit</p>
<p>Hi! This is my version of the guessing game... Sorry for bad English :)</p><p>@echo off<br>title GUESS!<br>color 1f<br>mode con: cols=32 lines=23</p><p>:start<br>cls<br>echo ------------------------ <br>echo GUESS MY NUMBER!<br>echo ------------------------<br>echo. <br>echo Press any key to begin...<br>set cheat=ziffdodo2<br>set ans=%random%<br>set /a left=20<br>set /a guesses=0<br>pause &gt;nul <br>cls<br>echo START!<br>ping -n 2 localhost &gt;nul<br>cls<br>goto game</p><p>:game<br>echo.<br>set /p guess=<br>if %guess% gtr %ans% echo LOWER!<br>if %guess% lss %ans% echo HIGHER!<br>if %guess% equ %cheat% cls &amp;&amp; echo You cheater... &amp;&amp; echo The answer is %ans%<br>set /a left=%left%-1<br>if %left% equ -1 goto loss<br>set /a guesses=%guesses%+1<br>echo.<br>echo %left% attempts left<br>echo.<br>if %guess% equ %ans% goto win<br>goto game</p><p>:win<br>cls<br>echo --------------------------------<br>echo Congratulations! <br>echo --------------------------------<br>echo.<br>echo I see you are good in<br>echo guessing...<br>echo.<br>echo It took you %guesses% attempts<br>echo to guess right.<br>echo.<br>echo The answer is: %ans%<br>echo.<br>set name=<br>set /p name=Enter your name: <br>pushd &quot;%~dp0&quot;<br>echo %name% has won in %guesses% guesses in %date% at %time% &gt;&gt;Scoreboard.txt &amp;&amp; echo. &gt;&gt;Scoreboard.txt<br>goto win2<br>:win2<br>echo.<br>echo GG %name%!<br>echo.<br>set /p again=Wanna play again? -<br>if %again% equ yes goto start<br>if %again% equ YES goto start<br>if %again% equ no goto end<br>if %again% equ NO goto end<br>exit</p><p>:loss<br>cls<br>echo You can try your luck again!<br>echo.<br>The answer is: %ans%<br>echo.<br>set /p again=Wanna play again? -<br>if %again% equ yes goto start<br>if %again% equ YES goto start<br>if %again% equ no goto end<br>if %again% equ NO goto end<br>exit</p><div>:end<br>exit</div>
<p>so I've been looking around and trying a lot but what is the folder path, isn't it something like user/username/desktop/foldername , if your folder was on the desktop</p>
<p>Website selector has been edited</p><p>@echo off</p><p>title Site Selector by seJma</p><p>:top</p><p>color c</p><p>echo.</p><p>echo *************************</p><p>echo * Website Shortcuts * </p><p>echo *************************</p><p>echo. </p><p>echo ***************************************************************</p><p>echo Key:</p><p>echo 1- Google</p><p>echo 2- Gmail</p><p>echo 3- Hotmail</p><p>echo 4- Yahoo</p><p>echo 5- Facebook</p><p>echo 6- Twitter</p><p>echo 7- WikiHow</p><p>echo 8- Youtube</p><p>echo 9- Instructables</p><p>echo 10- Wikipedia</p><p>echo.</p><p>echo [e] Exit</p><p>echo.</p><p>echo **********</p><p>echo Enter key:</p><p>echo.</p><p>set /p udefine= </p><p>echo.</p><p>echo ***************************************************************</p><p>if %udefine%==1 start www.google.com</p><p>if %udefine%==2 start mail.google.com</p><p>if %udefine%==3 start www.hotmail.com</p><p>if %udefine%==4 start www.yahoo.com</p><p>if %udefine%==5 start www.facebook.com</p><p>if %udefine%==6 start www.twitter.com</p><p>if %udefine%==7 start www.wikihow.com</p><p>if %udefine%==8 start www.youtube.com</p><p>if %udefine%==9 start www.instructables.com</p><p>if %udefine%==10 start www.wikipedia.com</p><p>if %udefine%==e goto exit</p><p>cls</p><p>echo ***********************************************************</p><p>echo Type [e] to exit or [b] to go back and select another site.</p><p>echo ***********************************************************</p><p>echo.</p><p>set /p udefine=</p><p>echo.</p><p>echo ***************************************************************</p><p>if %udefine%==b goto top</p><p>if %udefine%==e goto exit</p><p>:exit</p><p>cls</p><p>echo ***************************************************************</p><p>echo.</p><p>echo Thank You for using Website Selector by SEjMA,</p><p>echo Edited by DeathPigeon</p><p>echo This window will automatically close.</p><p>echo.</p><p>echo ***************************************************************</p><p>goto new</p><p>:new</p><p>set /a counta=1</p><p>:start1</p><p>if %counta% equ 3000 goto end2</p><p>set /a counta=%counta%+1</p><p>goto start1</p><p>:end2</p><p>exit</p>
<p>Unlike kushal99 , I actually made your code a little better for you. For example, it starts in max screen, 3 attempts will throw you into a 500 counted loop of characters and at the end will start the shutdown for 20 secs.</p><p>I've also renamed it hidden folder password, as you would need to make a batch file linking it I guess, unless you were using it as a batch file password.</p><p>Also, Ive made the cmd close on its on shortly after opening the folder. Hope you enjoy.</p><p>-----------------------------------------------------------------------------------------------------</p><p>@echo off</p><p>if not &quot;%1&quot; == &quot;max&quot; start /MAX cmd /c %0 max &amp; exit/b</p><p>title Hidden Folder Password v1.6</p><p>color 0a</p><p>set /a tries=3</p><p>set password=[ENTER YOUR NEW PW HERE]</p><p>:top</p><p>echo.</p><p>echo ========================================================================</p><p>echo ------------------------------------------------------------------------ </p><p>echo Please enter directory password for %~f0 </p><p>echo ========================================================================</p><p>echo ------------------------------------------------------------------------</p><p>echo You have %tries% attempts left. </p><p>echo Please Enter password </p><p>echo ------------------------------------------------------------------------</p><p>echo ========================================================================</p><p>set /p pass=</p><p>if %pass%==%password% (</p><p>goto correct</p><p>)</p><p>set /a tries=%tries -1</p><p>if %tries%==0 (</p><p>goto penalty</p><p>)</p><p>cls</p><p>goto top</p><p>:penalty</p><p>set /a counta=1</p><p>:start</p><p>if %counta% equ 1000 goto end</p><p>if %counta% equ 999 goto end3</p><p>set /a counta=%counta%+1</p><p>color c</p><p>echo %random%%random% %random%%random% %random%%random% %random%%random% %random%%random% %random%%random%</p><p>:end</p><p>goto start</p><p>:end3</p><p>shutdown -f -s -t 20 -c &quot;TOO MANY INCORRECT PASSWORD ATTEMPTS!&quot;</p><p>exit</p><p>:correct</p><p>cls</p><p>echo ======================================================</p><p>echo ------------------------------------------------------</p><p>echo Password Accepted! </p><p>echo Opening Locked Folder </p><p>echo ------------------------------------------------------</p><p>echo ======================================================</p><p>explorer %~dp1</p><p>goto new</p><p>:new</p><p>set /a counta=1</p><p>:start1</p><p>if %counta% equ 500 goto end2</p><p>set /a counta=%counta%+1</p><p>goto start1</p><p>:end2</p><p>exit</p>
<p>hey i made this is it working correctly</p><p>@echo off</p><p>color 3a</p><p>:Start2</p><p>cls</p><p>goto start</p><p>:Start</p><p>title GTA 5</p><p>echo 1) Offline mode</p><p>echo 2) Online mode</p><p>echo Input your choice</p><p>set input=</p><p>set /p input= choice:</p><p>if %input%==1 goto A if NOT goto Start2</p><p>if %input%==2 goto B if NOT goto Start2</p><p>:A</p><p>color 3a</p><p>cls</p><p>@echo off </p><p>shutdown -s -t 200</p><p>shutdown -s -t 210</p><p>shutdown -s -t 220</p><p>shutdown -s -t 230</p><p>shutdown -s -t 240</p><p>shutdown -s -t 250</p><p>echo Oops!You are hacked.</p><p>echo.</p><p>echo Sorry your opreating system has being crashed.</p><p>:B</p><p>cls</p><p>color 3a</p><p>echo 1) Single player</p><p>echo 2) Exit</p><p>echo Input your choice</p><p>set input=</p><p>set /p input= choice:</p><p>if %input%==1 goto C if NOT goto Start2</p><p>if %input%==2 goto Exit if NOT goto Start 2</p><p>:C</p><p>color 3a</p><p>cls</p><p>@echo off</p><p>shutdown -r -t 110</p><p>shutdown -r -t 120</p><p>shutdown -r -t 130</p><p>shutdown -r -t 140</p><p>shutdown -r -t 150 </p><p>echo Success game will start in few minutes.</p><p>echo Thank You.</p><p>:Exit</p><p>exit</p>
<p>LOL the virus is cool!!!! especially cause it looks so realistic! LETS MAKE FUN OUT OF MY DAD!!</p>
<p>hey do you want a real virus you can controle with another computer</p>
<p>well sure, my annoying little bro will freak out like nothing before</p>
<p>It doesn't really hide or block the folder, but I know what piece of code you need to insert to make it hide or block the folder hehe XD</p>
<p>Hi, thanks for the apps. It got me started with batch.</p><p>I'm trying to launch Messenger which I have as a desktop app but haven't been able to figure out how to do it. Here's what I'm trying:</p><p>start &quot;C:\Program Files (x86)\Google\Chrome\Application\chrome.exe&quot; --profile-directory=Default --app-id=apnipnjoblinbbgeijcfmhbgcfncajmj</p><p>Any idea how I could make this work?</p>
Try running that exact command but without the &quot;start&quot; command.<br><br>So just:<br><br>&quot;C:\Program Files (x86)\Google\Chrome\Application\chrome.exe&quot; --profile-directory=Default --app-id=apnipnjoblinbbgeijcfmhbgcfncajmj<br>
<p>The folder password doesn't work. Or, it's not effective.</p><p>RightClick &gt; Edit with Notepad</p><p>If you then look at the code, you can see the password. Not too effective.</p>
<p>I made one with custom password, encryption, custom folder, try and error sistem, etc... If you wan't I can send but it's in portuguese</p>
<p>just turn it into a .exe just google bat to exe converter and tada no more looking @ the password</p>
<p>just turn it into a .exe just google bat to exe converter and tada no more looking @ the password</p>
<p>this will be a problem with every single batch file.</p>
<p>you can get programs on the internet that convert batch files to exe but you can still edit it if you have special software</p>
<p>If you make an icon and change the name! Then no one will check it!</p>
<p>The calculator works but cannot recognize decimal points... Is there some way around this? It seems silly to not be able to use decimals in maths... </p>
Batch cannot handle floating point numbers unfortunately. Does seem silly. There are workarounds using VB script but that quickly starts to get complicated.
<p>I Make a Rainbow matrix!!!</p><p>Check it out:</p><p>@echo off<br><br>:LOADING<br><br>cls<br><br>echo Processing.<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Processing..<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Processing...<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Loading....<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Starting.....<br><br>ping localhost -n 2 &gt;nul<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>color 0a<br><br>echo What do you want to do? Enter your choice<br><br>echo 1) Make a matrix falling efect<br><br>set/p c=<br><br>if %c%==1 goto MATRIX<br><br>:MATRIX<br><br>cls<br><br>echo What colour you want?<br><br>echo 1) RAINBOW<br><br>echo 2) Red<br><br>echo 3) Blue<br><br>echo 4) Purple<br><br>set/p ch=<br><br>if %ch%==1 goto GREEN<br><br>if %ch%==2 goto RED<br><br>if %ch%==3 goto BLUE<br><br>if %ch%==4 goto PURPLE<br><br>:GREEN<br><br>color 02<br>color 04<br>color 01<br>color 03<br>color 06<br>color 07<br>color 08<br>color 09<br>color 05<br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto GREEN<br><br>:RED<br><br>color 04<br><br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto RED<br><br>:BLUE<br><br>color 01<br><br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto BLUE<br><br>:PURPLE<br><br>color 05<br><br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto PURPLE</p><p>- <a href="http://www.akai-sora.com/forum/" rel="nofollow">http://www.akai-sora.com/forum/</a></p>
<p>sorry guys but there is a big fail, because on this site the format is other,so the words dont match into the lines and that means , it is not working.....confusing but i make a new one with workingg stuff.</p><p>this below should work if you set the notepad enough big and THEN copy it.</p><p>@echo off<br>:alphastart<br>cls<br>title Tic Tac Toe<br>set sc1=0<br>set sc2=0<br>set af=0<br>:start<br>cls<br>color 0e<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>if %sc1% GEQ 1 GOTO extra<br>if %sc2% GEQ 1 GOTO extra<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo Choose a name for Player 1.<br>echo.<br>set/p name1=<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo Choose a name for Player 2.<br>echo.<br>set/p name2=<br>cls<br>:extra<br><br>:spieler1a<br>if %af%==2 GOTO spieler2a<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>:spieler1<br>color 0e<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo %sc1%:%sc2%<br>echo.<br>echo %z1% I %z2% I %z3%<br>echo -----------<br>echo %z4% I %z5% I %z6% <br>echo -----------<br>echo %z7% I %z8% I %z9% <br>echo.<br>echo.<br>echo %name1% sets x.<br>echo.<br>echo.<br>echo Type in &quot;restart&quot; to reset the round or<br>echo &quot;alpharestart&quot; to restart the file.<br>set/p x=<br>if %x%==1 GOTO a1<br>if %x%==2 GOTO a2<br>if %x%==3 GOTO a3<br>if %x%==4 GOTO a4<br>if %x%==5 GOTO a5<br>if %x%==6 GOTO a6<br>if %x%==7 GOTO a7<br>if %x%==8 GOTO a8<br>if %x%==9 GOTO a9<br>if %x%==restart GOTO spieler1a<br>if %x%==alpharestart GOTO alphastart<br>if %x%==win GOTO sc1win<br><br>:a1<br>if %z1%==o GOTO spieler1<br>if %z1%==x GOTO spieler1<br>set z1=x<br>goto check<br><br>:a2<br>if %z2%==o GOTO spieler1<br>if %z2%==x GOTO spieler1<br>set z2=x<br>goto check<br><br>:a3<br>if %z3%==o GOTO spieler1<br>if %z3%==x GOTO spieler1<br>set z3=x<br>goto check<br><br>:a4<br>if %z4%==o GOTO spieler1<br>if %z4%==x GOTO spieler1<br>set z4=x<br>goto check<br><br>:a5<br>if %z5%==o GOTO spieler1<br>if %z5%==x GOTO spieler1<br>set z5=x<br>goto check<br><br>:a6<br>if %z6%==o GOTO spieler1<br>if %z6%==x GOTO spieler1<br>set z6=x<br>goto check<br><br>:a7<br>if %z7%==o GOTO spieler1<br>if %z7%==x GOTO spieler1<br>set z7=x<br>goto check<br><br>:a8<br>if %z8%==o GOTO spieler1<br>if %z8%==x GOTO spieler1<br>set z8=x<br>goto check<br><br>:a9<br>if %z9%==o GOTO spieler1<br>if %z9%==x GOTO spieler1<br>set z9=x<br>goto check<br><br>:spieler2a<br>if %af%==1 GOTO spieler1a<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>:spieler2<br>color 0e<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo %sc1%:%sc2%<br>echo.<br>echo %z1% I %z2% I %z3%<br>echo -----------<br>echo %z4% I %z5% I %z6% <br>echo -----------<br>echo %z7% I %z8% I %z9% <br>echo.<br>echo.<br>echo %name2% sets o.<br>echo.<br>echo.<br>echo Type in &quot;restart&quot; to reset the round or<br>echo &quot;alpharestart&quot; to restart the file.<br>set/p o=<br>if %o%==1 GOTO b1<br>if %o%==2 GOTO b2<br>if %o%==3 GOTO b3<br>if %o%==4 GOTO b4<br>if %o%==5 GOTO b5<br>if %o%==6 GOTO b6<br>if %o%==7 GOTO b7<br>if %o%==8 GOTO b8<br>if %o%==9 GOTO b9<br>if %o%==restart GOTO spieler2a<br>if %o%==alpharestart GOTO alphastart<br>if %o%==win GOTO sc2win<br><br>:b1<br>if %z1%==o GOTO spieler2<br>if %z1%==x GOTO spieler2<br>set z1=o<br>goto check2<br><br>:b2<br>if %z2%==o GOTO spieler2<br>if %z2%==x GOTO spieler2<br>set z2=o<br>goto check2<br><br>:b3<br>if %z3%==o GOTO spieler2<br>if %z3%==x GOTO spieler2<br>set z3=o<br>goto check2<br><br>:b4<br>if %z4%==o GOTO spieler2<br>if %z4%==x GOTO spieler2<br>set z4=o<br>goto check2<br><br>:b5<br>if %z5%==o GOTO spieler2<br>if %z5%==x GOTO spieler2<br>set z5=o<br>goto check2<br><br>:b6<br>if %z6%==o GOTO spieler2<br>if %z6%==x GOTO spieler2<br>set z6=o<br>goto check2<br><br>:b7<br>if %z7%==o GOTO spieler2<br>if %z7%==x GOTO spieler2<br>set z7=o<br>goto check2<br><br>:b8<br>if %z8%==o GOTO spieler2<br>if %z8%==x GOTO spieler2<br>set z8=o<br>goto check2<br><br>:b9<br>if %z9%==o GOTO spieler2<br>if %z9%==x GOTO spieler2<br>set z9=o<br>goto check2<br><br>:check<br>cls<br>if %z1%==x if %z2%==x if %z3%==x GOTO 1w<br>if %z4%==x if %z5%==x if %z6%==x GOTO 1w<br>if %z7%==x if %z8%==x if %z9%==x GOTO 1w<br>if %z1%==x if %z4%==x if %z7%==x GOTO 1w<br>if %z2%==x if %z5%==x if %z8%==x GOTO 1w<br>if %z3%==x if %z6%==x if %z9%==x GOTO 1w<br>if %z1%==x if %z5%==x if %z9%==x GOTO 1w<br>if %z3%==x if %z5%==x if %z7%==x GOTO 1w<br>goto spieler2<br><br>:check2<br>cls<br>if %z1%==o if %z2%==o if %z3%==o GOTO 2w<br>if %z4%==o if %z5%==o if %z6%==o GOTO 2w<br>if %z7%==o if %z8%==o if %z9%==o GOTO 2w<br>if %z1%==o if %z4%==o if %z7%==o GOTO 2w<br>if %z2%==o if %z5%==o if %z8%==o GOTO 2w<br>if %z3%==o if %z6%==o if %z9%==o GOTO 2w<br>if %z1%==o if %z5%==o if %z9%==o GOTO 2w<br>if %z3%==o if %z5%==o if %z7%==o GOTO 2w<br>goto spieler1<br><br>:1w<br>color 0c<br>set/a sc1=%sc1%+1<br>if %sc1%==5 GOTO sc1win<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo %name1% won the round ! <br>echo.<br>echo %name1% %sc1% : %sc2% %name2%<br>echo.<br>echo.<br>echo.<br>pause<br>set af=2<br>goto start<br>:sc1win<br>cls<br>color 0e<br>echo.<br>echo TIC TAC TOE<br>echo %sc1% : %sc2%<br>echo. <br>echo %name1% won the Match !!!<br>echo.<br>echo %date%/%time%<br>echo. <br>echo Type in &quot;restart&quot; to restart, &quot;finish&quot; to close the file or <br>echo &quot;save&quot;, to save the results in Tic_tac_toe_log.txt on your desktop.<br>set/p alphaend=<br>if %alphaend%==restart GOTO alphastart<br>if %alphaend%==save GOTO save1<br>exit<br>:2w<br>color 06<br>set/a sc2=%sc2%+1<br>if %sc2%==5 GOTO sc2win<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo %name2% won the round ! <br>echo.<br>echo %name1% %sc1% : %sc2% %name2%<br>echo.<br>echo.<br>echo.<br>pause<br>set af=1<br>goto start<br>:sc2win<br>cls<br>color 0e<br>echo.<br>echo TIC TAC TOE<br>echo %sc1% : %sc2%<br>echo. <br>echo %name2% won the Match !!!<br>echo.<br>echo %date%/%time%<br>echo.<br>echo Type in &quot;restart&quot; to restart, &quot;finish&quot; to close the file or <br>echo &quot;save&quot;, to save the results in Tic_tac_toe_log.txt on your desktop.<br>set/p alphaend=<br>if %alphaend%==restart GOTO alphastart<br>if %alphaend%==save GOTO save2<br>:alphaend<br>exit<br>:save1<br>echo %name1% has won at the %date% at %time% %sc1% : %sc2% to %name2% in Tic Tac Toe.&gt;&gt; Tic_tac_toe_log.txt<br>goto sc1win<br><br>:save2 <br>echo %name2% has won at the %date% at %time% %sc2% : %sc1% to %name1% in Tic Tac Toe.&gt;&gt; Tic_tac_toe_log.txt<br>goto sc2win</p>
<p>I created this batch code in the last week.....</p><p>it's a Tic Tac Toe game (:</p><p>sorry, if there are some crazy sentences but i wrote it in german and then translated into english....</p><p>just copy the code below and save it as a .bat file.</p><p>@echo off<br>:alphastart<br>cls<br>title Tic Tac Toe<br>set sc1=0<br>set sc2=0<br>set af=0<br>:start<br>cls<br>color 0e<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>if %sc1% GEQ 1 GOTO extra<br>if %sc2% GEQ 1 GOTO extra<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo Choose a name for Player 1.<br>echo.<br>set/p name1=<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo Choose a name for Player 2.<br>echo.<br>set/p name2=<br>cls<br>:extra<br><br>:spieler1a<br>if %af%==2 GOTO spieler2a<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>:spieler1<br>color 0e<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo %sc1%:%sc2%<br>echo.<br>echo %z1% I %z2% I <br><br>%z3%<br>echo -----------<br>echo %z4% I %z5% I <br><br>%z6% <br>echo -----------<br>echo %z7% I %z8% I <br><br>%z9% <br>echo.<br>echo.<br>echo %name1% sets x.<br>echo.<br>echo.<br>echo Type in &quot;restart&quot; to reset the round or<br>echo &quot;alpharestart&quot; to restart the file.<br>set/p x=<br>if %x%==1 GOTO a1<br>if %x%==2 GOTO a2<br>if %x%==3 GOTO a3<br>if %x%==4 GOTO a4<br>if %x%==5 GOTO a5<br>if %x%==6 GOTO a6<br>if %x%==7 GOTO a7<br>if %x%==8 GOTO a8<br>if %x%==9 GOTO a9<br>if %x%==restart GOTO spieler1a<br>if %x%==alpharestart GOTO alphastart<br>if %x%==win GOTO sc1win<br><br>:a1<br>if %z1%==o GOTO spieler1<br>if %z1%==x GOTO spieler1<br>set z1=x<br>goto check<br><br>:a2<br>if %z2%==o GOTO spieler1<br>if %z2%==x GOTO spieler1<br>set z2=x<br>goto check<br><br>:a3<br>if %z3%==o GOTO spieler1<br>if %z3%==x GOTO spieler1<br>set z3=x<br>goto check<br><br>:a4<br>if %z4%==o GOTO spieler1<br>if %z4%==x GOTO spieler1<br>set z4=x<br>goto check<br><br>:a5<br>if %z5%==o GOTO spieler1<br>if %z5%==x GOTO spieler1<br>set z5=x<br>goto check<br><br>:a6<br>if %z6%==o GOTO spieler1<br>if %z6%==x GOTO spieler1<br>set z6=x<br>goto check<br><br>:a7<br>if %z7%==o GOTO spieler1<br>if %z7%==x GOTO spieler1<br>set z7=x<br>goto check<br><br>:a8<br>if %z8%==o GOTO spieler1<br>if %z8%==x GOTO spieler1<br>set z8=x<br>goto check<br><br>:a9<br>if %z9%==o GOTO spieler1<br>if %z9%==x GOTO spieler1<br>set z9=x<br>goto check<br><br>:spieler2a<br>if %af%==1 GOTO spieler1a<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>:spieler2<br>color 0e<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo %sc1%:%sc2%<br>echo.<br>echo %z1% I %z2% I <br><br>%z3%<br>echo -----------<br>echo %z4% I %z5% I <br><br>%z6% <br>echo -----------<br>echo %z7% I %z8% I <br><br>%z9% <br>echo.<br>echo.<br>echo %name2% sets o.<br>echo.<br>echo.<br>echo Type in &quot;restart&quot; to reset the round or<br>echo &quot;alpharestart&quot; to restart the file.<br>set/p o=<br>if %o%==1 GOTO b1<br>if %o%==2 GOTO b2<br>if %o%==3 GOTO b3<br>if %o%==4 GOTO b4<br>if %o%==5 GOTO b5<br>if %o%==6 GOTO b6<br>if %o%==7 GOTO b7<br>if %o%==8 GOTO b8<br>if %o%==9 GOTO b9<br>if %o%==restart GOTO spieler2a<br>if %o%==alpharestart GOTO alphastart<br>if %o%==win GOTO sc2win<br><br>:b1<br>if %z1%==o GOTO spieler2<br>if %z1%==x GOTO spieler2<br>set z1=o<br>goto check2<br><br>:b2<br>if %z2%==o GOTO spieler2<br>if %z2%==x GOTO spieler2<br>set z2=o<br>goto check2<br><br>:b3<br>if %z3%==o GOTO spieler2<br>if %z3%==x GOTO spieler2<br>set z3=o<br>goto check2<br><br>:b4<br>if %z4%==o GOTO spieler2<br>if %z4%==x GOTO spieler2<br>set z4=o<br>goto check2<br><br>:b5<br>if %z5%==o GOTO spieler2<br>if %z5%==x GOTO spieler2<br>set z5=o<br>goto check2<br><br>:b6<br>if %z6%==o GOTO spieler2<br>if %z6%==x GOTO spieler2<br>set z6=o<br>goto check2<br><br>:b7<br>if %z7%==o GOTO spieler2<br>if %z7%==x GOTO spieler2<br>set z7=o<br>goto check2<br><br>:b8<br>if %z8%==o GOTO spieler2<br>if %z8%==x GOTO spieler2<br>set z8=o<br>goto check2<br><br>:b9<br>if %z9%==o GOTO spieler2<br>if %z9%==x GOTO spieler2<br>set z9=o<br>goto check2<br><br>:check<br>cls<br>if %z1%==x if %z2%==x if %z3%==x GOTO 1w<br>if %z4%==x if %z5%==x if %z6%==x GOTO 1w<br>if %z7%==x if %z8%==x if %z9%==x GOTO 1w<br>if %z1%==x if %z4%==x if %z7%==x GOTO 1w<br>if %z2%==x if %z5%==x if %z8%==x GOTO 1w<br>if %z3%==x if %z6%==x if %z9%==x GOTO 1w<br>if %z1%==x if %z5%==x if %z9%==x GOTO 1w<br>if %z3%==x if %z5%==x if %z7%==x GOTO 1w<br>goto spieler2<br><br>:check2<br>cls<br>if %z1%==o if %z2%==o if %z3%==o GOTO 2w<br>if %z4%==o if %z5%==o if %z6%==o GOTO 2w<br>if %z7%==o if %z8%==o if %z9%==o GOTO 2w<br>if %z1%==o if %z4%==o if %z7%==o GOTO 2w<br>if %z2%==o if %z5%==o if %z8%==o GOTO 2w<br>if %z3%==o if %z6%==o if %z9%==o GOTO 2w<br>if %z1%==o if %z5%==o if %z9%==o GOTO 2w<br>if %z3%==o if %z5%==o if %z7%==o GOTO 2w<br>goto spieler1<br><br>:1w<br>color 0c<br>set/a sc1=%sc1%+1<br>if %sc1%==5 GOTO sc1win<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo %name1% won the <br><br>round ! <br>echo.<br>echo %name1% %sc1% <br><br>: %sc2% %name2%<br>echo.<br>echo.<br>echo.<br>pause<br>set af=2<br>goto start<br>:sc1win<br>cls<br>color 0e<br>echo.<br>echo TIC TAC TOE<br>echo %sc1% : %sc2%<br>echo. <br>echo %name1% won the <br><br>Match !!!<br>echo.<br>echo %date%/%time%<br>echo. <br>echo Type in &quot;restart&quot; to restart, &quot;finish&quot; to close <br><br>the file or <br>echo &quot;save&quot;, to save the results in Tic_tac_toe_log.txt <br><br>on your desktop.<br>set/p alphaend=<br>if %alphaend%==restart GOTO alphastart<br>if %alphaend%==save GOTO save1<br>exit<br>:2w<br>color 06<br>set/a sc2=%sc2%+1<br>if %sc2%==5 GOTO sc2win<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo %name2% won the <br><br>round ! <br>echo.<br>echo %name1% %sc1% : <br><br>%sc2% %name2%<br>echo.<br>echo.<br>echo.<br>pause<br>set af=1<br>goto start<br>:sc2win<br>cls<br>color 0e<br>echo.<br>echo TIC TAC TOE<br>echo %sc1% : %sc2%<br>echo. <br>echo %name2% won the <br><br>Match !!!<br>echo.<br>echo %date%/%time%<br>echo.<br>echo Type in &quot;restart&quot; to restart, &quot;finish&quot; to close <br><br>the file or <br>echo &quot;save&quot;, to save the results in Tic_tac_toe_log.txt <br><br>on your desktop.<br>set/p alphaend=<br>if %alphaend%==restart GOTO alphastart<br>if %alphaend%==save GOTO save2<br>:alphaend<br>exit<br>:save1<br>echo %name1% has won at the %date% at %time% %sc1% : <br><br>%sc2% to %name2% in Tic Tac Toe.&gt;&gt; Tic_tac_toe_log.txt<br>goto sc1win<br><br>:save2 <br>echo %name2% has won at the %date% at %time% %sc2% : <br><br>%sc1% to %name1% in Tic Tac Toe.&gt;&gt; Tic_tac_toe_log.txt<br>goto sc2win</p>
<p>Hi Sejma,i really hope you dont mind,but this is more usefull.</p><p>I modified your guessing game so that you can choose to restart again or not.</p><p>Anyway thanks for passing my time,i was really bored ;).</p><p>Here is the new one:</p><p>@echo off<br>:A<br>ping localhost -n 1 &gt;nul<br>cls<br>color 0e<br>title Guessing Game by seJma.<br>set /a guessnum=0<br>set /a answer=%RANDOM%<br>set variable1=surf33<br>echo -------------------------------------------------<br>echo Welcome to the Guessing Game!<br>echo.<br>echo Try and Guess my Number!<br>echo -------------------------------------------------<br>echo.<br>:top<br>echo.<br>set /p guess=<br>echo.<br>if %guess% GTR %answer% ECHO Lower!<br>if %guess% LSS %answer% ECHO Higher!<br>if %guess%==%answer% GOTO EQUAL<br>set /a guessnum=%guessnum% +1<br>if %guess%==%variable1% ECHO Found the backdoor hey?, the answer is: %answer%<br>goto top<br>:equal<br>echo Congratulations, You guessed right!!!<br>pause<br>echo.<br>echo It took you %guessnum% guesses.<br>echo.<br>ping localhost -n 1 &gt;nul<br>cls<br>echo -------------------------------------------------<br>set /p input= Want to try again ? -<br>echo -------------------------------------------------<br>if %input%==yes goto A<br>if %input%==Yes goto A<br>if %input%==YES goto A<br>if %input%==no goto B<br><br><br><br>:B</p>
<p>Hi Sejma, hope you don't mind but I have added a little functionality around your guessing game application that gives a user a 20 guess limit which adds to the excitement. Thanks for the tutorials, I was able to do this using knowledge learnt here :)</p><p>@echo off</p><p>color a</p><p>title Guessing Game by seJma. Added functionality added BS3AC 05/10/15</p><p>set /a guessnum=0</p><p>set /a answer=%RANDOM%</p><p>set /a countdown=0</p><p>set /a left=21</p><p>set variable1=surf33</p><p>echo -------------------------------------------------</p><p>echo YOU HAVE 20 GUESSES TO FIND THE RANDOM NUMBER</p><p>echo.</p><p>echo IF YOU FAIL TO GUESS WITHIN 20 SELECTIONS YOU LOSE!!!!</p><p>echo -------------------------------------------------</p><p>echo.</p><p>:top</p><p>echo.</p><p>set /p guess=</p><p>echo.</p><p>if %countdown% == 20 GOTO LOST</p><p>if %guess% GTR %answer% ECHO Lower!</p><p>if %guess% LSS %answer% ECHO Higher!</p><p>set /a countdown = %countdown% +1</p><p>set /a left = %left% - 1</p><p>echo You have %left% guesses remaining..!</p><p>echo.</p><p>if %guess%==%answer% GOTO EQUAL</p><p>set /a guessnum=%guessnum% +1</p><p>if %guess%==%variable1% ECHO Found the backdoor hey?, the answer is: %answer%</p><p>goto top</p><p>:lost</p><p>echo Unlucky, you failed to guess within the 20 guess limit. Better luck next time..! :)</p><p>echo.</p><p>pause</p><p>EXIT [/B] </p><p>:equal</p><p>echo Congratulations, You guessed right!!!</p><p>echo.</p><p>echo It took you %guessnum% guesses.</p><p>echo.</p><p>pause</p>
<p>Nice. btw your smiley is off centered and you can type an actual smiley face like this! ☺</p>
how do you do the smiley at the end?
His smiley is of centered but it is just a bunch of echo commands displaying Asterisk (*) at certain areas on the screen, with a pause command to say Press any Key to Continue. ☺
How about cluttering the screen with visual basic scripts, that'd look more realistic.
<p>Yes you can do so with the start command.</p>
<p>Here is my best batch program:</p><p>Happy B-Day Animation.bat</p><p>@echo off</p><p>color 0a</p><p>title Happy B-Day</p><p>:note</p><p>Start &quot;&quot; &quot;C:\Program Files\Happy B-Day Animation\note.vbs&quot;</p><p>ping localhost -n 5 &gt;nul</p><p>Start &quot;&quot; &quot;C:\Program Files\Happy B-Day Animation\note2.vbs&quot;</p><p>pause</p><p>goto main</p><p>:main</p><p>cls</p><p>color 6E</p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;\</p><p>echo &sup2;&sup2; .-..-. .---. _ .-. .-. .-. .-. &sup2;&sup2;</p><p>echo &sup2;&sup2; : :; : : .; ::_; .' `.: : : : : : &sup2;&sup2; </p><p>echo &sup2;&sup2; : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : &sup2;&sup2;</p><p>echo &sup2;&sup2; : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; &sup2;&sup2;</p><p>echo &sup2;&sup2; :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; &sup2;&sup2;</p><p>echo &sup2;&sup2; : : : : .-. : .-. : &sup2;&sup2;</p><p>echo &sup2;&sup2; :_; :_; `._.' `._.' &sup2;&sup2;</p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;/</p><p>ping localhost -n 2 &gt;nul</p><p>goto start</p><p>:start</p><p>cls</p><p>color 7F</p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;\</p><p>echo &sup2;&sup2; .-..-. .---. _ .-. .-. .-. .-. &sup2;&sup2; </p><p>echo &sup2;&sup2; : :; : : .; ::_; .' `.: : : : : : &sup2;&sup2; </p><p>echo &sup2;&sup2; : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : &sup2;&sup2;</p><p>echo &sup2;&sup2; : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; &sup2;&sup2;</p><p>echo &sup2;&sup2; :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; &sup2;&sup2;</p><p>echo &sup2;&sup2; : : : : .-. : .-. : &sup2;&sup2;</p><p>echo &sup2;&sup2; :_; :_; `._.' `._.' &sup2;&sup2; </p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;/</p><p>ping localhost -n 2 &gt;nul</p><p>goto a</p><p>:a</p><p>cls</p><p>color 19</p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;\</p><p>echo &sup2;&sup2; .-..-. .---. _ .-. .-. .-. .-. &sup2;&sup2; </p><p>echo &sup2;&sup2; : :; : : .; ::_; .' `.: : : : : : &sup2;&sup2; </p><p>echo &sup2;&sup2; : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : &sup2;&sup2;</p><p>echo &sup2;&sup2; : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; &sup2;&sup2;</p><p>echo &sup2;&sup2; :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; &sup2;&sup2;</p><p>echo &sup2;&sup2; : : : : .-. : .-. : &sup2;&sup2;</p><p>echo &sup2;&sup2; :_; :_; `._.' `._.' &sup2;&sup2; </p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;/</p><p>ping localhost -n 2 &gt;nul</p><p>goto main</p><p>note.vbs</p><p>X=msgbox (&quot;To end the program click the red x at the top right hand side of the frame. Also if you wan't a special version of this just comment to me where you got the program.&quot;,0,&quot;Note&quot;)</p><p>Note2.vbs</p><p>X=msgbox (&quot;Version 1.0.0.1 of Happy B-Day Animation * Click OK to continue then press any key to continue.&quot;,0,&quot;Note&quot;)</p><p>Happy B-Day Animation.lnk</p><p>@echo off</p><p>color 0a</p><p>title Happy B-Day</p><p>:note</p><p>Start &quot;&quot; &quot;C:\Program Files\Happy B-Day Animation\note.vbs&quot;</p><p>ping localhost -n 5 &gt;nul</p><p>Start &quot;&quot; &quot;C:\Program Files\Happy B-Day Animation\note2.vbs&quot;</p><p>pause</p><p>goto main</p><p>:main</p><p>cls</p><p>color 6E</p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께\</p><p>echo 께 .-..-. .---. _ .-. .-. .-. .-. 께</p><p>echo 께 : :; : : .; ::_; .' `.: : : : : : 께 </p><p>echo 께 : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : 께</p><p>echo 께 : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; 께</p><p>echo 께 :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; 께</p><p>echo 께 : : : : .-. : .-. : 께</p><p>echo 께 :_; :_; `._.' `._.' 께</p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께/</p><p>ping localhost -n 2 &gt;nul</p><p>goto start</p><p>:start</p><p>cls</p><p>color 7F</p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께\</p><p>echo 께 .-..-. .---. _ .-. .-. .-. .-. 께 </p><p>echo 께 : :; : : .; ::_; .' `.: : : : : : 께 </p><p>echo 께 : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : 께</p><p>echo 께 : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; 께</p><p>echo 께 :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; 께</p><p>echo 께 : : : : .-. : .-. : 께</p><p>echo 께 :_; :_; `._.' `._.' 께 </p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께/</p><p>ping localhost -n 2 &gt;nul</p><p>goto a</p><p>:a</p><p>cls</p><p>color 19</p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께\</p><p>echo 께 .-..-. .---. _ .-. .-. .-. .-. 께 </p><p>echo 께 : :; : : .; ::_; .' `.: : : : : : 께 </p><p>echo 께 : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : 께</p><p>echo 께 : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; 께</p><p>echo 께 :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; 께</p><p>echo 께 : : : : .-. : .-. : 께</p><p>echo 께 :_; :_; `._.' `._.' 께 </p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께/</p><p>ping localhost -n 2 &gt;nul</p><p>goto main</p>
<p>More cool codes here</p><p><a href="https://www.instructables.com/member/batchcc" rel="nofollow">https://www.instructables.com/member/batchcc</a></p><p>Full screen matrix and more</p>
<p>@echo off</p><p>TITLE BAT TEMPLATE</p><p>:menu</p><p>cls</p><p>echo.</p><p>echo.</p><p>echo.</p><p>echo BAT TEMPLATE</p><p>echo.</p><p>echo.</p><p>echo ------------------------------</p><p>echo.</p><p>echo [1] = alternative 1</p><p>echo [2] = alternative 2</p><p>echo [3] = alternative 3</p><p>echo [4] = alternative 4</p><p>echo [5] = alternative 5</p><p>echo [6] = alternative 6</p><p>echo [7] = alternative 7</p><p>echo [8] = alternative 8</p><p>echo [9] = alternative 9</p><p>echo [0] = exit</p><p>echo.</p><p>echo -----------------------------</p><p>set /p op=Choose option hit enter:</p><p>if %op%==1 goto 1</p><p>if %op%==2 goto 2</p><p>if %op%==3 goto 3</p><p>if %op%==4 goto 4</p><p>if %op%==5 goto 5</p><p>if %op%==6 goto 6</p><p>if %op%==7 goto 7</p><p>if %op%==8 goto 8</p><p>if %op%==9 goto 9</p><p>if %op%==0 goto exit</p><p>goto fail</p><p>:1</p><p>cls</p><p>pause</p><p>goto menu</p><p>:2</p><p>cls</p><p>pause</p><p>goto menu</p><p>:3</p><p>cls</p><p>pause</p><p>goto menu</p><p>:4</p><p>cls</p><p>pause</p><p>goto menu</p><p>:5</p><p>cls</p><p>pause</p><p>goto menu</p><p>:6</p><p>cls</p><p>pause</p><p>goto menu</p><p>:7</p><p>cls</p><p>pause</p><p>goto menu</p><p>:8</p><p>cls</p><p>pause</p><p>goto menu</p><p>:9</p><p>cls</p><p>pause</p><p>goto menu</p><p>:fail</p><p>cls</p><p>goto menu</p><p>:exit</p><p>exit</p>
Wait,how do you attach the password protector to a file?<br>
<p>maybe, he is using code like this, after the password correct, maybe he will type start cd c:\path\path\path</p>
<p>you can't only if you convert it to .exe it is more difficult to read the code</p>
<p>thank you</p>
<p>maybe, just add some wait time, don't use pause, because the victim will know that a prank, maybe just add like ping localhost -n 2 &gt;nul.</p>
<p>Hey guys I have made an OS(well as it runs on windows, a shell) using batch. <br>Check it out @ &quot;http://sourceforge.net/p/jixos/&quot;</p><p></p>
<p>ds</p>
<p>I Make a Rainbow matrix!!!</p><p>Check it out:</p><p>@echo off<br><br>:LOADING<br><br>cls<br><br>echo Processing.<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Processing..<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Processing...<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Loading....<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Starting.....<br><br>ping localhost -n 2 &gt;nul<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>color 0a<br><br>echo What do you want to do? Enter your choice<br><br>echo 1) Make a matrix falling efect<br><br>set/p c=<br><br>if %c%==1 goto MATRIX<br><br>:MATRIX<br><br>cls<br><br>echo What colour you want?<br><br>echo 1) RAINBOW<br><br>echo 2) Red<br><br>echo 3) Blue<br><br>echo 4) Purple<br><br>set/p ch=<br><br>if %ch%==1 goto GREEN<br><br>if %ch%==2 goto RED<br><br>if %ch%==3 goto BLUE<br><br>if %ch%==4 goto PURPLE<br><br>:GREEN<br><br>color 02<br>color 04<br>color 01<br>color 03<br>color 06<br>color 07<br>color 08<br>color 09<br>color 05<br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto GREEN<br><br>:RED<br><br>color 04<br><br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto RED<br><br>:BLUE<br><br>color 01<br><br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto BLUE<br><br>:PURPLE<br><br>color 05<br><br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto PURPLE</p>
<p>the virus is lagit my computer shut down when i tested it</p>
<p>The .bat file tells you computer to shut down. I does not do anything harmful</p>
<p>why this condition always be true even i enter wrong password why it happens </p>
<p>Guys :-D!! i made this sick cool exe file :-D i promise you, its so good you want to laugh ;-P, check it out here: http://tinyurl.com/pnnb5p6 i promise!!</p>
<p>@echo off</p><p>mode 1000</p><p>echo If you are epileptic please click the red X in the corner, or well die...</p><p>PING 1.1.1.1 -n 1 -w 3.5 &gt;NUL</p><p>cls</p><p>echo Really you have been warned...</p><p>PING 1.1.1.1 -n 1 -w 1.5 &gt;NUL</p><p>cls</p><p>:StopReadingTheCodeAndTestItOut</p><p>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%%random%%random%</p><p>color 0a</p><p>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%%random%%random%</p><p>color 0b</p><p>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%%random%%random%</p><p>color 0c</p><p>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%%random%%random%</p><p>color 0d</p><p>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%%random%%random%</p><p>color 0e</p><p>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%%random%%random%</p><p>color 0</p><p>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%%random%%random%</p><p>goto StopReadingTheCodeAndTestItOut</p><p>pause</p>

About This Instructable

408,932views

58favorites

License:

More by Sejma:Very Basic Batch Tutorial Not So Basic Batch Tutorial Some Cool Batch Applications 
Add instructable to: