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
<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>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>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>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="http://www.instructables.com/member/batchcc" rel="nofollow">http://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>
<p>I made one that saves your password (the user can choose the password).</p><p>tabepic.wix.com/smartcrewhub</p>
<p>Here is a better password protected folder (open it first) you might wanna change the password though, right now look for ENTERPASSWORDHERE:</p><p>cls</p><p>@ECHO OFF</p><p>title Folder Private</p><p>if EXIST &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; goto UNLOCK</p><p>if NOT EXIST Private goto MDLOCKER</p><p>:CONFIRM</p><p>echo Are you sure you want to lock the folder(Y/N)</p><p>set/p &quot;cho=&gt;&quot;</p><p>if %cho%==Y goto LOCK</p><p>if %cho%==y goto LOCK</p><p>if %cho%==n goto END</p><p>if %cho%==N goto END</p><p>echo Invalid choice.</p><p>goto CONFIRM</p><p>:LOCK</p><p>ren Private &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot;</p><p>attrib +h +s &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot;</p><p>echo Folder locked</p><p>goto End</p><p>:UNLOCK</p><p>echo Enter password to unlock folder</p><p>set/p &quot;pass=&gt;&quot;</p><p>if NOT %pass%== ENTERPASSWORDHERE goto FAIL</p><p>attrib -h -s &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot;</p><p>ren &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; Private</p><p>echo Folder Unlocked successfully</p><p>goto End</p><p>:FAIL</p><p>echo Invalid password</p><p>goto end</p><p>:MDLOCKER</p><p>md Private</p><p>echo Private created successfully</p><p>goto End</p><p>:End</p>
Would you please try this? I want to thank you... This code has created by me.... <br>https://www.facebook.com/shuchokbd <br> <br>@echo off <br>echo Thank You Very Much... <br>echo. <br>echo Please, Press Enter Rapidly!!! <br>pause&gt;null <br>echo. <br>:start <br>color 0e <br>pause&gt;null <br>color 0a <br>pause&gt;null <br>color 0d <br>pause&gt;null <br>goto start
<p>why the pauses? why not just let it be automatic?</p>
<p>Enter to the folder protector as a password: 1==1 goto correct &amp; if 1</p>
<p>The folder password thing doesn't work, it only blocks like one or two folders.</p>
<p>your guys's posts are cool, but for over 1100 lines of code and 50+ added commands, dl at cCMDs-dl.webs.com</p>
<p>nice2 smile </p>
<p>try this code and please open it fullscreen</p><p>@echo off</p><p>:LOADING </p><p>cls </p><p>echo Processing. </p><p>ping localhost -n 2 &gt;nul </p><p>cls </p><p>echo Processing.. </p><p>ping localhost -n 2 &gt;nul </p><p>cls </p><p>echo Processing... </p><p>ping localhost -n 2 &gt;nul </p><p>cls </p><p>echo Loading.... </p><p>ping localhost -n 2 &gt;nul </p><p>cls </p><p>echo Starting..... </p><p>ping localhost -n 2 &gt;nul </p><p>ping localhost -n 2 &gt;nul </p><p>cls</p><p>color 0a </p><p>echo What do you want to do? Enter your choice</p><p>echo 1) Make a matrix falling efect</p><p>set/p c=</p><p>if %c%==1 goto MATRIX</p><p>:MATRIX</p><p>cls</p><p>echo What colour you want?</p><p>echo 1) Green (recommended)</p><p>echo 2) Red</p><p>echo 3) Blue</p><p>echo 4) Purple</p><p>set/p ch=</p><p>if %ch%==1 goto GREEN</p><p>if %ch%==2 goto RED</p><p>if %ch%==3 goto BLUE</p><p>if %ch%==4 goto PURPLE</p><p>:GREEN</p><p>color 02</p><p>set a=67841350137489528937018256781344</p><p>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%</p><p>goto GREEN</p><p>:RED</p><p>color 04</p><p>set a=67841350137489528937018256781344</p><p>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%</p><p>goto RED</p><p>:BLUE</p><p>color 01</p><p>set a=67841350137489528937018256781344</p><p>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%</p><p>goto BLUE</p><p>:PURPLE</p><p>color 05</p><p>set a=67841350137489528937018256781344</p><p>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%</p><p>goto PURPLE</p>
<p>This is a batch file which makes it look like you have been hacked by anonymous</p><p>P.S. shutdown -a is optional</p><p>@echo off</p><p>color 02</p><p>:loop</p><p>ping -n 2 127.0.0.1&gt;nul</p><p>echo KNOWLEDGE IS FREE!</p><p>ping -n 2 127.0.0.1&gt;nul</p><p>echo 5</p><p>ping -n 2 127.0.0.1&gt;nul</p><p>echo 4</p><p>ping -n 2 127.0.0.1&gt;nul</p><p>echo 3</p><p>ping -n 2 127.0.0.1&gt;nul</p><p>echo 2</p><p>ping -n 2 127.0.0.1&gt;nul</p><p>echo 1</p><p>ping -n 2 127.0.0.1&gt;nul</p><p>color 04</p><p>echo !!!!!</p><p>color 04</p><p>@echo off</p><p>:tricks</p><p>echo ERROR - PC HAS BEEN HACKED</p><p>color 04</p><p>Shutdown -R -t 30 -c &quot;We Are Anonymous. We Are Legion. We Do Not Forgive. We Do Not Forget. Expect Us!&quot;</p><p>ping 127.0.0.1 -n 7 -w 1000</p><p>shutdown -a</p><p>pause</p><p>Exit</p>
its a secure password system that you enter digit by digit <br>The abort code and password is 1335 <br>Abort code is typed all in one go <br> <br>*************************** <br>@echo off <br>title Secure Password <br>:passeword <br>Echo password required <br>set /p CH= <br>if &quot;%CH%&quot;==&quot;1&quot; goto 1perfect <br>if not &quot;%CH%&quot;==&quot;1&quot; goto wrong1 <br>:wrong1 <br>Echo wrong <br>ECho 2 attempts remaining <br>pause <br>goto passeword1 <br>:1perfect <br>Echo Next <br>set /p QP= <br>if &quot;%QP%&quot;==&quot;3&quot; goto 3perfect <br>if not &quot;%QP%&quot;==&quot;3&quot; goto wrong1 <br>:3perfect <br>Echo next <br>set /p AD= <br>If &quot;%AD%&quot;==&quot;3&quot; goto 5perfect <br>if not &quot;%AD%&quot;==&quot;3&quot; goto wrong1 <br>:5perfect <br>Echo final one <br>set /p DM= <br>if &quot;%DM%&quot;==&quot;5&quot; goto complete <br>if not &quot;%DM%&quot;==&quot;5&quot; goto wrong1 <br>:passeword1 <br>Echo 2 Attempts remaining <br>Echo password required <br>set /p CH= <br>if &quot;%CH%&quot;==&quot;1&quot; goto 1 <br>if not &quot;%CH%&quot;==&quot;1&quot; goto wrong2 <br>:wrong2 <br>Echo wrong <br>ECho 1 attempt remaining <br>Echo Failure to get password <br>Echo will result in a shutdown <br>pause <br>goto passeword2 <br>:1 <br>Echo Next <br>set /p QP= <br>if &quot;%QP%&quot;==&quot;3&quot; goto 3 <br>if not &quot;%QP%&quot;==&quot;3&quot; goto wrong2 <br>:3 <br>Echo next <br>set /p AD= <br>If &quot;%AD%&quot;==&quot;3&quot; goto 5 <br>if not &quot;%AD%&quot;==&quot;3&quot; goto wrong2 <br>:5 <br>Echo final one <br>set /p DM= <br>if &quot;%DM%&quot;==&quot;5&quot; goto complete <br>if not &quot;%DM%&quot;==&quot;5&quot; goto wrong2 <br>:passeword2 <br>Echo password required <br>set /p CH= <br>if &quot;%CH%&quot;==&quot;1&quot; goto 1final <br>if not &quot;%CH%&quot;==&quot;1&quot; goto wrong3 <br>:wrong3 <br>Echo You have failed to guess the password <br>ECho You now have 30 seconds to enter the abort code <br>Echo It is the same as the password <br>shutdown /s /t 30 <br>Echo ********** <br>set /p SD= <br>if &quot;%SD%&quot;==&quot;1335&quot; goto abort <br>if not &quot;%SD%&quot;==&quot;1335&quot; goto end <br>pause <br>goto passeword2 <br>:1final <br>Echo Next <br>set /p QP= <br>if &quot;%QP%&quot;==&quot;3&quot; goto 3final <br>if not &quot;%QP%&quot;==&quot;3&quot; goto wrong3 <br>:3final <br>Echo next <br>set /p AD= <br>If &quot;%AD%&quot;==&quot;3&quot; goto 5final <br>if not &quot;%AD%&quot;==&quot;3&quot; goto wrong3 <br>:5final <br>Echo final one <br>set /p DM= <br>if &quot;%DM%&quot;==&quot;5&quot; goto complete <br>if not &quot;%DM%&quot;==&quot;5&quot; goto wrong3 <br>:complete <br>Echo You made it this far <br>Echo 1335 <br>Echo Now enter a directory and its ready <br>Echo made by angusPROD <br>pause <br>exit <br>:abort <br>shutdown /a <br>Echo Shutdown aborted <br>goto passeword2 <br>:end <br>Echo Goodbye <br>pause <br>Exit
<p>THIS IS AN EDIT I MADE OF angusPROD.<br>@echo off</p><p>title Secure Password @EDIT BY H.GADE. MAIN CREATOR AngusPROD.</p><p>:passeword </p><p>cls</p><p>echo. NOTE! Code is 1335</p><p>Echo Password required </p><p>CHOICE /C 123456789 /N &gt;nul</p><p>If &quot;%errorlevel%&quot;==&quot;1&quot; (GOTO :1perfect)</p><p>If NOT &quot;%errorlevel%&quot;==&quot;1&quot; (GOTO :wrong1)</p><p>:1perfect </p><p>cls</p><p>Echo Next </p><p>CHOICE /C 123456789 /N &gt;nul</p><p>If &quot;%errorlevel%&quot;==&quot;3&quot; (GOTO :3perfect)</p><p>If NOT &quot;%errorlevel%&quot;==&quot;3&quot; (GOTO :wrong1)</p><p>:3perfect </p><p>cls</p><p>Echo Next </p><p>CHOICE /C 123456789 /N &gt;nul</p><p>If &quot;%errorlevel%&quot;==&quot;3&quot; (GOTO :5perfect)</p><p>If NOT &quot;%errorlevel%&quot;==&quot;3&quot; (GOTO :wrong1)</p><p>:5perfect </p><p>cls</p><p>Echo Final Digit</p><p>CHOICE /C 123456789 /N &gt;nul</p><p>If &quot;%errorlevel%&quot;==&quot;5&quot; (GOTO :complete)</p><p>If NOT &quot;%errorlevel%&quot;==&quot;5&quot; (GOTO :wrong1)</p><p>:wrong1 </p><p>Echo. Wrong. You will have to wait 30 seconds.</p><p>Echo.</p><p>timeout -T 30 /NOBREAK &gt;nul</p><p>(GOTO :passeword)</p><p>:passeword1 </p><p>Echo 2 Attempts remaining </p><p>Echo password required </p><p>set /p CH= </p><p>if &quot;%CH%&quot;==&quot;1&quot; goto 1 </p><p>if not &quot;%CH%&quot;==&quot;1&quot; goto wrong2 </p><p>:wrong2 </p><p>Echo wrong </p><p>ECho 1 attempt remaining </p><p>Echo Failure to get password </p><p>Echo will result in a shutdown </p><p>pause </p><p>goto passeword2 </p><p>:1 </p><p>Echo Next </p><p>set /p QP= </p><p>if &quot;%QP%&quot;==&quot;3&quot; goto 3 </p><p>if not &quot;%QP%&quot;==&quot;3&quot; goto wrong2 </p><p>:3 </p><p>Echo next </p><p>set /p AD= </p><p>If &quot;%AD%&quot;==&quot;3&quot; goto 5 </p><p>if not &quot;%AD%&quot;==&quot;3&quot; goto wrong2 </p><p>:5 </p><p>Echo final one </p><p>set /p DM= </p><p>if &quot;%DM%&quot;==&quot;5&quot; goto complete </p><p>if not &quot;%DM%&quot;==&quot;5&quot; goto wrong2 </p><p>:passeword2 </p><p>Echo password required </p><p>set /p CH= </p><p>if &quot;%CH%&quot;==&quot;1&quot; goto 1final </p><p>if not &quot;%CH%&quot;==&quot;1&quot; goto wrong3 </p><p>:wrong3 </p><p>Echo You have failed to guess the password </p><p>ECho You now have 30 seconds to enter the abort code.</p><p>Echo It is the same as the password </p><p>shutdown /s /t 30 </p><p>Echo ********** </p><p>set /p SD= </p><p>if &quot;%SD%&quot;==&quot;1335&quot; goto abort </p><p>if not &quot;%SD%&quot;==&quot;1335&quot; goto end </p><p>pause </p><p>goto passeword2 </p><p>:1final </p><p>Echo Next </p><p>set /p QP= </p><p>if &quot;%QP%&quot;==&quot;3&quot; goto 3final </p><p>if not &quot;%QP%&quot;==&quot;3&quot; goto wrong3 </p><p>:3final </p><p>Echo next </p><p>set /p AD= </p><p>If &quot;%AD%&quot;==&quot;3&quot; goto 5final </p><p>if not &quot;%AD%&quot;==&quot;3&quot; goto wrong3 </p><p>:5final </p><p>Echo final one </p><p>set /p DM= </p><p>if &quot;%DM%&quot;==&quot;5&quot; goto complete </p><p>if not &quot;%DM%&quot;==&quot;5&quot; goto wrong3 </p><p>:complete </p><p>Echo You made it this far </p><p>Echo Now enter a directory and its ready </p><p>echo.</p><p>echo.</p><p>Echo. Made by angusPROD</p><p>echo. Edit by H.Gade</p><p>echo.</p><p>Echo. Editor Above took this batch to a whole new level.</p><p>echo. Thank you for Trying out this batch.</p><p>echo.</p><p>pause &gt;nul</p><p>exit </p><p>:abort </p><p>shutdown /a </p><p>Echo Shutdown aborted </p><p>goto passeword2 </p><p>:end </p><p>Echo Goodbye </p><p>pause </p><p>Exit</p>

About This Instructable