loading

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>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>try this:</p><p>@echo off</p><p>title Hangman-1 By Hhrk</p><p>setlocal enabledelayedexpansion</p><p>:menu</p><p>cls</p><p>echo Main Menu</p><p>echo To Play A Game, Press 1</p><p>echo To Add new Words, Press 2</p><p>echo To exit, Press 3</p><p>set /p menu=</p><p>if not defined menu goto menu</p><p>if /i %menu% equ 1 (</p><p>set menu=</p><p>goto Startgame</p><p>)</p><p>if /i %menu% equ 2 (</p><p>set menu=</p><p>goto addwords</p><p>)</p><p>if /i %menu% equ 3 (</p><p>set menu=</p><p>set finishing=1</p><p>goto :EOF</p><p>)</p><p>set menu=</p><p>goto menu</p><p>:addwords</p><p>cls</p><p>Echo Type the word you'd like to add to the dictionary and press enter.</p><p>set /p wordtoadd=&quot;&quot;</p><p>if NOT defined wordtoadd (</p><p>goto addwords)</p><p>set justchecking=1</p><p>set wcheck=0</p><p>:wordadd</p><p>call :w%wcheck%</p><p>cls</p><p>if defined finishing (goto :EOF)</p><p>echo.&gt;&gt;Hangman.bat</p><p>echo :w%wcheck%&gt;&gt;Hangman.bat</p><p>echo set word=%wordtoadd%&gt;&gt;Hangman.bat</p><p>echo goto gotword&gt;&gt;Hangman.bat</p><p>set justchecking=</p><p>set wordtoadd=</p><p>set wcheck=</p><p>echo Word Added</p><p>pause&gt;nul</p><p>goto menu</p><p>:goodcheck</p><p>set /a wcheck= %wcheck% + 1</p><p>goto wordadd</p><p>:startgame</p><p>cls</p><p>set hang=12</p><p>set /a randomnumber=%time:~9,2%</p><p>:numberadjustment</p><p>call :w%randomnumber%</p><p>if defined finishing (goto :EOF&gt;nul)</p><p>cls</p><p>set /a randomnumber= ( %randomnumber% * ( ( %randomnumber% * 75 ) /100 ) ) / ( %randomnumber% + 14 ) + ( %randomnumber% * 4 ) / ( %randomnumber% * 3 )</p><p>if /i randomnumber GEQ 10 (</p><p>set randomnumber=%randomnumber:~0,2%</p><p>) ELSE (</p><p>set randomnumber=%randomnumber:~0,1%</p><p>)</p><p>goto numberadjustment</p><p>:gotword</p><p>if defined justchecking (goto goodcheck)</p><p>set letternumber=0</p><p>:lettersorting</p><p>set x=!letternumber!</p><p>set Letter%letternumber%=!word:~%x%,1!</p><p>set Space%letternumber%=_</p><p>if NOT &quot;!Letter%letternumber%!&quot;==&quot;&quot; (</p><p>set /a letternumber= %letternumber% + 1</p><p>goto lettersorting</p><p>)</p><p>set space=</p><p>set /a spacenumber=0</p><p>:spacecalculator</p><p>set space=%space% #Space%spacenumber%#</p><p>set /a spacenumber= %spacenumber% + 1</p><p>if /i %spacenumber% equ %letternumber% (goto 1guess) else (goto spacecalculator)</p><p>:1guess</p><p>set score=0</p><p>set allguesses=letters:</p><p>:guess</p><p>cls</p><p>goto hang%hang%</p><p>:keepguessing</p><p>echo.</p><p>Echo Guess The Word: %space:#=!%</p><p>if %hang%==1 ( echo Last Guess!) else (</p><p>echo %Hang% Guesses Left </p><p>)</p><p>echo You've guessed these %allguesses%</p><p>echo.</p><p>echo Guess Your Letter</p><p>set guess=</p><p>Set /p guess=</p><p>if not defined guess (goto guess)</p><p>set guess=%guess:~0,1%</p><p>if &quot;%guess%&quot;==&quot;!&quot; (goto guess)</p><p>echo You Guessed %guess%</p><p>if &quot;%allguesses:~8%&quot;==&quot;&quot; goto SkipCheckAlreadyGuess</p><p>echo %allguesses:~8% | find /i &quot;%guess%&quot; &gt;nul</p><p>if /i %errorlevel% equ 0 (</p><p>echo You've already guessed that.</p><p>pause&gt;nul</p><p>goto guess</p><p>)</p><p>:SkipCheckAlreadyGuess</p><p>set allguesses=%allguesses% %guess%</p><p>set poonumber=%letternumber%</p><p>if not defined score (set score=0)</p><p>if not defined oldscore (set oldscore=0)</p><p>:processguess</p><p>set verifyletter=!Letter%poonumber%!</p><p>if /i &quot;%guess%&quot;==&quot;%verifyletter%&quot; (</p><p>set /a score= !score! + 1</p><p>goto letteradjust</p><p>)</p><p>goto resume</p><p>:letteradjust</p><p>set Space%poonumber%=!Letter%poonumber%!</p><p>set !Letter%poonumber%=LETTERDONE</p><p>:resume</p><p>set /a poonumber=%poonumber% - 1</p><p>if /i %poonumber% lss 0 (goto noletter)</p><p>goto processguess</p><p>:noletter</p><p>if /i %score% GTR %oldscore% (goto gotletter)</p><p>Echo Sorry, wrong.</p><p>set /a hang= !hang! - 1</p><p>if !hang!==0 (goto dead)</p><p>pause&gt;nul</p><p>set /a oldscore= %score%</p><p>cls</p><p>goto guess</p><p>:gotletter</p><p>echo Well done!</p><p>if %letternumber%==%score% (goto win)</p><p>pause&gt;nul</p><p>set /a oldscore= %score%</p><p>goto guess</p><p>:dead</p><p>cls</p><p>echo Sorry, you died.</p><p>echo The word was &quot;%word%&quot;.</p><p>pause&gt;nul</p><p>goto endofall</p><p>:win</p><p>cls</p><p>echo You Won!</p><p>echo The word was &quot;%word%&quot;!</p><p>echo Well done!</p><p>pause&gt;nul</p><p>:endofall</p><p>set space=</p><p>set cheddar=</p><p>set word=</p><p>set oldscore=</p><p>set score=</p><p>set letternumber=</p><p>set poonumber=</p><p>set spacenumber=</p><p>set anotherword=</p><p>set randomnumber=</p><p>set hang=</p><p>set guess=</p><p>set verifyletter=</p><p>set x=0</p><p>:endset</p><p>if defined Letter%x% (</p><p>set Letter%x%=</p><p>set /a x= %x% + 1</p><p>goto endset</p><p>)</p><p>set x=0</p><p>:endset2</p><p>if defined Space%x% (</p><p>set Letter%x%=</p><p>set /a x= %x% + 1</p><p>goto endset2</p><p>)</p><p>set x=</p><p>:askagain</p><p>cls</p><p>echo Go to the menu (enter 1) or quit (enter 2)?</p><p>set /p cheddar=&quot;&quot;</p><p>if not defined cheddar goto askagain</p><p>if %cheddar%==1 (</p><p>set cheddar=</p><p>goto menu)</p><p>if %cheddar%==2 (</p><p>set finishing=1</p><p>goto :EOF)</p><p>goto askagain</p><p>:hang12</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>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>echo.</p><p>goto keepguessing</p><p>:hang11</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>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>echo [________________________________]</p><p>goto keepguessing</p><p>:hang10</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>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>echo [________________________________]</p><p>goto keepguessing</p><p>:hang9</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>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>echo [________________________________]</p><p>goto keepguessing</p><p>:hang8</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>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>echo [________________________________]</p><p>goto keepguessing</p><p>:hang7</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>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>echo [________________________________]</p><p>goto keepguessing</p><p>:hang6</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>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>echo [________________________________]</p><p>goto keepguessing</p><p>:hang5</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>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>echo [________________________________]</p><p>goto keepguessing</p><p>:hang4</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>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>echo [________________________________]</p><p>goto keepguessing</p><p>:hang3</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>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>echo [________________________________]</p><p>goto keepguessing</p><p>:hang2</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>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>echo [________________________________]</p><p>goto keepguessing</p><p>:hang1</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>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>echo [________________________________]</p><p>goto keepguessing</p><p>:w0</p><p>set word=Bugger</p><p>goto gotword</p><p>:w1</p><p>set word=Willy</p><p>goto gotword</p><p>:w2</p><p>set word=Jelly</p><p>goto gotword</p><p>:w3</p><p>set word=Nipple</p><p>goto gotword</p><p>:w4</p><p>set word=Poo</p><p>goto gotword</p><p>:w5</p><p>set word=Dog</p><p>goto gotword</p><p>:w6</p><p>set word=Rat</p><p>goto gotword</p><p>:w7</p><p>set word=Cat</p><p>goto gotword</p><p>:w8</p><p>set word=Orange</p><p>goto gotword</p><p>:w9</p><p>set word=Purple</p><p>goto gotword</p><p>:w10</p><p>set word=Curry</p><p>goto gotword</p><p>:w11</p><p>set word=Pickle</p><p>goto gotword</p><p>:w12</p><p>set word=Porridge</p><p>goto gotword</p><p>:w13</p><p>set word=Apple</p><p>goto gotword</p><p>:w14</p><p>set word=Loop</p><p>goto gotword</p><p>:w15</p><p>set word=Balloon</p><p>goto gotword</p><p>:w16</p><p>set word=Drive</p><p>goto gotword</p><p>:w17</p><p>set word=Pork</p><p>goto gotword</p><p>:w18</p><p>set word=Fornicate</p><p>goto gotword</p><p>:w19</p><p>set word=Fag</p><p>goto gotword</p><p>:w20</p><p>set word=Monkey</p><p>goto gotword</p><p>:w21</p><p>set word=Crispy</p><p>goto gotword</p><p>:w22</p><p>set word=Beef</p><p>goto gotword</p><p>:w23</p><p>set word=Constitutional</p><p>goto gotword</p><p>:w24</p><p>set word=Educational</p><p>goto gotword</p><p>:w25</p><p>set word=Abnormality</p><p>goto gotword</p><p>:w26</p><p>set word=Retarded</p><p>goto gotword</p><p>:w27</p><p>set word=Fornication</p><p>goto gotword</p><p>:w28</p><p>set word=Rubbing</p><p>goto gotword</p><p>:w29</p><p>set word=Resin</p><p>goto gotword</p><p>:w30</p><p>set word=French</p><p>goto gotword</p><p>:w31</p><p>set word=Pipeline</p><p>goto gotword</p><p>:w32</p><p>set word=Ripple</p><p>goto gotword</p><p>:w33</p><p>set word=Punk</p><p>goto gotword</p><p>:w34</p><p>set word=Turtle</p><p>goto gotword</p><p>:w35</p><p>set word=Antler</p><p>goto gotword</p><p>:w36</p><p>set word=Raindeer</p><p>goto gotword</p><p>:w37</p><p>set word=Document</p><p>goto gotword</p><p>:w38</p><p>set word=Hill</p><p>goto gotword</p><p>:w39</p><p>set word=Steak</p><p>goto gotword</p><p>:w40</p><p>set word=Stake</p><p>goto gotword</p><p>:w41</p><p>set word=Staple</p><p>goto gotword</p><p>:w42</p><p>set word=Hang</p><p>goto gotword</p><p>:w43</p><p>set word=Man</p><p>goto gotword</p><p>:w44</p><p>set word=Alcohol</p><p>goto gotword</p><p>:w45</p><p>set word=Nicotine</p><p>goto gotword</p><p>:w46</p><p>set word=Cigarette</p><p>goto gotword</p><p>:w47</p><p>set word=Triple</p><p>goto gotword</p><p>:w48</p><p>set word=Lime</p><p>goto gotword</p><p>:w49</p><p>set word=Wire</p><p>goto gotword</p><p>:w50</p><p>set word=Plaster</p><p>goto gotword</p><p>:w51</p><p>set word=Christmas</p><p>goto gotword</p><p>:w52</p><p>set word=Holiday</p><p>goto gotword</p><p>:w53</p><p>set word=Dynamite</p><p>goto gotword</p><p>:w54</p><p>set word=Lemming</p><p>goto gotword</p><p>:w55</p><p>set word=Pizza</p><p>goto gotword</p><p>:w56</p><p>set word=Suckle</p><p>goto gotword</p><p>:w57</p><p>set word=Trip</p><p>goto gotword</p><p>:w58</p><p>set word=Course</p><p>goto gotword</p><p>:w59</p><p>set word=Cruise</p><p>goto gotword</p><p>:w60</p><p>set word=Marquee</p><p>goto gotword</p><p>:w61</p><p>set word=Balance</p><p>goto gotword</p><p>:w62</p><p>set word=Scale</p><p>goto gotword</p><p>:w63</p><p>set word=Stuffing</p><p>goto gotword</p><p>:w64</p><p>set word=Storage</p><p>goto gotword</p><p>:w65</p><p>set word=Pot</p><p>goto gotword</p><p>:w66</p><p>set word=Tank</p><p>goto gotword</p><p>:w67</p><p>set word=Tassle</p><p>goto gotword</p><p>:w68</p><p>set word=Silenced</p><p>goto gotword</p><p>:w69</p><p>set word=Sniff</p><p>goto gotword</p><p>:w70</p><p>set word=Green</p><p>goto gotword</p><p>:w71</p><p>set word=Dolphin</p><p>goto gotword</p><p>:w72</p><p>set word=Echo</p><p>goto gotword</p><p>:w73</p><p>set word=Wheat</p><p>goto gotword</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>
I like your version but i have made my own. <br>anyone can check it out if they want but please give credit when sharing. Thank you! <br> <br>@echo off <br>title Calculator <br>color 0a <br>echo Welcome to The Basic Arithmetic Calculator <br>echo Made By Martin Miglio <br>ping localhost -n 3 &gt;nul <br> <br>:LOADING <br>cls <br>echo Loading. <br>ping localhost -n 2 &gt;nul <br>cls <br>echo Loading.. <br>ping localhost -n 2 &gt;nul <br>cls <br>echo Loading... <br>ping localhost -n 2 &gt;nul <br>cls <br>echo Loading.... <br>ping localhost -n 2 &gt;nul <br>cls <br>echo Loading..... <br>ping localhost -n 2 &gt;nul <br>ping localhost -n 2 &gt;nul <br>color 0a <br> <br>:START <br>cls <br>echo What Type of Math would you like to do? <br>echo Add, Subtract, Multiply, or Divide. <br>set /p math= <br>IF '%math%' == 'Add' GOTO ADD <br>IF '%math%' == 'add' GOTO ADD <br>IF '%math%' == 'Subtract' GOTO SUB <br>IF '%math%' == 'subtract' GOTO SUB <br>IF '%math%' == 'Multiply' GOTO MULTIPLY <br>IF '%math%' == 'multiply' GOTO MULTIPLY <br>IF '%math%' == 'Divide' GOTO DIVIDE <br>IF '%math%' == 'divide' GOTO DIVIDE <br>Exit <br> <br>:ADD <br>Cls <br>GOTO NUMBERSADD <br>pause <br>exit <br> <br>:SUB <br>Cls <br>GOTO NUMBERSSUB <br>pause <br>exit <br> <br>:MULTIPLY <br>Cls <br>GOTO NUMBERSMULTIPLY <br>pause <br>exit <br> <br>:DIVIDE <br>Cls <br>GOTO NUMBERSDIVIDE <br>pause <br>exit <br> <br>:NUMBERSADD <br>echo What is the First Number you would like to Add? <br>set /p number1= <br>cls <br>echo What is the Second Number you would like to Add? <br>set /p number2= <br>cls <br> <br>GOTO ADD2 <br>exit <br> <br>:NUMBERSSUB <br>echo What is the First Number you would like to Subtract? <br>set /p number1= <br>cls <br>echo What is the Second Number you would like to Subtract? <br>set /p number2= <br>cls <br>GOTO SUB2 <br>exit <br> <br>:NUMBERSMULTIPLY <br>echo What is the First Number you would like to Multiply? <br>set /p number1= <br>cls <br>echo What is the Second Number you would like to Multiply? <br>set /p number2= <br>cls <br>GOTO MULTIPLY2 <br>exit <br> <br>:NUMBERSDIVIDE <br>echo What is the First Number you would like to Divide? <br>set /p number1= <br>cls <br>echo What is the Second Number you would like to Divide? <br>set /p number2= <br>cls <br>GOTO DIVIDE2 <br>exit <br> <br>:ADD2 <br>Set /A result = %number1% + %number2% <br>echo The answer is %result%. <br>Pause <br>GOTO START <br>exit <br> <br>:SUB2 <br>Set /A result = %number1% - %number2% <br>echo The answer is %result%. <br>pause <br>GOTO START <br>exit <br> <br>:MULTIPLY2 <br>Set /A result = %number1% * %number2% <br>echo The answer is %result%. <br>pause <br>GOTO START <br>exit <br> <br>:DIVIDE2 <br>Set /A result = %number1% / %number2% <br>echo The answer is %result%. <br>pause <br>GOTO START <br>exit <br> <br> <br> <br> <br>fin
this is a folder lock that does hide the folder <br>cls <br>@ECHO OFF <br>title Folder Confidential <br>if EXIST &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; goto UNLOCK <br>if NOT EXIST Confidential goto MDLOCKER <br>:CONFIRM <br>echo Are you sure you want to lock the folder(Y/N) <br>set/p &quot;cho=&gt;&quot; <br>if %cho%==Y goto LOCK <br>if %cho%==y goto LOCK <br>if %cho%==n goto END <br>if %cho%==N goto END <br>echo Invalid choice. <br>goto CONFIRM <br>:LOCK <br>ren Confidential &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; <br>attrib +h +s &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; <br>echo Folder locked <br>goto End <br>:UNLOCK <br>echo Enter the Password to unlock folder <br>set/p &quot;pass=&gt;&quot; <br>if NOT %pass%== Passwords are hard to crack goto FAIL <br>attrib -h -s &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; <br>ren &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; Confidential <br>echo Folder Unlocked successfully <br>goto End <br>:FAIL <br>echo Invalid password <br>goto end <br>:MDLOCKER <br>md confidential <br>echo Confidential created successfully <br>goto End <br>:End
@ECHO OFF <br>title Folder Confidential <br> <br>if EXIST &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; goto UNLOCK <br>if NOT EXIST Confidential goto MDLOCKER <br> <br> <br>:CONFIRM <br>echo Are you sure you want to lock the folder(Y/N) <br>set/p &quot;cho=&gt;&quot; <br>if %cho%==Y goto LOCK <br>if %cho%==y goto LOCK <br>if %cho%==n goto END <br>if %cho%==N goto END <br>echo Invalid choice. <br>goto CONFIRM <br>:LOCK <br>ren Confidential &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; <br>attrib +h +s &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; <br>echo Folder locked <br>goto End <br>:UNLOCK <br>echo Enter the Password to unlock folder <br>set/p &quot;pass=&gt;&quot; <br>If %pass%==Password GOTO test <br>if NOT %pass%==Password goto FAIL <br>:test <br>attrib -h -s &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; <br>ren &quot;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&quot; Confidential <br>echo Folder Unlocked successfully <br>goto End <br>:FAIL <br>echo Invalid password <br>goto end <br>:MDLOCKER <br>md confidential <br>echo Confidential created successfully <br>goto End <br>:End <br> <br>I correct your code
That's pretty cool stuff! <br>I'm working on a forum where I need to do just 2 simple math problems. <br> <br>Var/.4 =x and var/.6=x <br> <br>I don't know what the rise in the number by .4 and .6 actually really does for the company but that's the way they want it. <br> <br>does anyone know how to build an easy app for that. <br>just 3 text boxes. one for entering an amount and an enter button that does the math and enters that data in the .4 and .6 math answers text boxes simultaneously. <br>They don't even need to be labeled.
Free maintenance batch for Windows, just uses utilities built into windows 7 and 8, with 1-click action. Has an installer though. Cleans, defrags, disk checks, updates, checks for malware...etc. User is free to edit it for personal use, make it better...etc :) <br> <br>OnceOver Maintenance Batch <br>www.freeOMB.com
Put this in for a nice little password protect: <br> <br>Set /a try=0 <br> <br>:begin <br>set /a try=%try%+1 <br>If %try%==4 GOTO die <br>Echo Enter your password: <br>Echo. <br>Set /p pass=&quot;--&gt;&quot; <br> <br>If %pass%==**PASSWORD** GOTO correct <br>GOTO begin <br> <br>:die <br>Echo Too many incorrect tries <br>rem (Put some form of punishment here) <br> <br>:correct <br> <br>rem Your main code <br>
@Win7Maniacwhat do you mean by &quot;this sets off the internal alarm in XP and maybe Vista&quot; and what's an&quot;internal alarm&quot;?
I believe that is the motherboard beeper.

About This Instructable