loading
In this instructable I am going to list every batch code I can find so it can be easier to find. I will not put every trivia game show on one or two will be enough but if you have a code you want me to put here post it in the comments or send it to me as a private message I will also optimize files if I get a chance. If you have links or files please submit them every batch code is valuable and some are very hard to find.

Step 1: Plug-ins

Common plug-ins include batch box and bg you can run these batch files and it will create plugin.bat. Rob Van Woude's blog is a great resource for finding plug-ins and learning how to code batch files his plug-ins can be found here Plug-ins

Step 2: Matrix.bat

Here is the classic marix.bat !!!
@echo off
cls
title Matrix
color 02
:start
echo %random% %random% %random% %random% %random% %random% %random% %random%

goto start

Step 3: Full Screen Matrix

Here you can find something better than the matrix. *** A FULL SCREEN MATRIX ***

Step 4: Sejma Batch Calculator

This file was coded by instructable user Sejma
Note: batch doesn't support anything but basic math I will soon post a tutorial on batch arithmatic explaining work arounds.


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

Step 5: Pokemon

Get the Pokémon experience in a batch file.

The code is very long and can be found here
https://community.spiceworks.com/scripts/show/2360-pokemon-game-in-batch

Or downloaded from my instructable.

Step 6: Deal or No Deal

DOND.bat by ScrewTheLotOfYou

Step 7: Neo the Matrix Has You

This was not created by me however I don;t know where I found it

@echo off

color 02 cls echo W ping localhost -n .15 >nul cls echo Wa ping localhost -n .15 >nul cls echo Wak ping localhost -n .15 >nul cls echo Wake ping localhost -n .15 >nul cls echo Wake ping localhost -n .15 >nul cls echo Wake u ping localhost -n .15 >nul cls echo Wake up ping localhost -n .15 >nul cls echo Wake up ping localhost -n .15 >nul cls echo Wake up N ping localhost -n .15 >nul cls echo Wake up Ne ping localhost -n .15 >nul cls echo Wake up Neo ping localhost -n .15 >nul cls echo Wake up Neo. ping localhost -n .15 >nul cls echo Wake up Neo.. ping localhost -n .15 >nul cls echo Wake up Neo... ping localhost -n 5 >nul cls echo T ping localhost -n .15 >nul cls echo Th ping localhost -n .15 >nul cls echo The ping localhost -n .15 >nul cls echo The ping localhost -n .15 >nul cls echo The M ping localhost -n .15 >nul cls echo The Ma ping localhost -n .15 >nul cls echo The Mat ping localhost -n .15 >nul cls echo The Matr ping localhost -n .15 >nul cls echo The Matri ping localhost -n .15 >nul cls echo The Matrix ping localhost -n .15 >nul cls echo The Matrix ping localhost -n .15 >nul cls echo The Matrix h ping localhost -n .15 >nul cls echo The Matrix ha ping localhost -n .15 >nul cls echo The Matrix has ping localhost -n .15 >nul cls echo The Matrix has ping localhost -n .15 >nul cls echo The Matrix has y ping localhost -n .15 >nul cls echo The Matrix has yo ping localhost -n .15 >nul cls echo The Matrix has you ping localhost -n .15 >nul cls echo The Matrix has you. ping localhost -n .15 >nul cls echo The Matrix has you.. ping localhost -n .15 >nul cls echo The Matrix has you... ping localhost -n 5 >nul cls echo F ping localhost -n .15 >nul cls echo Fo ping localhost -n .15 >nul cls echo Fol ping localhost -n .15 >nul cls echo Foll ping localhost -n .15 >nul cls echo Follo ping localhost -n .15 >nul cls echo Follow ping localhost -n .15 >nul cls echo Follow ping localhost -n .15 >nul cls echo Follow t ping localhost -n .15 >nul cls echo Follow th ping localhost -n .15 >nul cls echo Follow the ping localhost -n .15 >nul cls echo Follow the ping localhost -n .15 >nul cls echo Follow the w ping localhost -n .15 >nul cls echo Follow the wh ping localhost -n .15 >nul cls echo Follow the whi ping localhost -n .15 >nul cls echo Follow the whit ping localhost -n .15 >nul cls echo Follow the white ping localhost -n .15 >nul cls echo Follow the white ping localhost -n .15 >nul cls echo Follow the white r ping localhost -n .15 >nul cls echo Follow the white ra ping localhost -n .15 >nul cls echo Follow the white rab ping localhost -n .15 >nul cls echo Follow the white rabb ping localhost -n .15 >nul cls echo Follow the white rabbi ping localhost -n .15 >nul cls echo Follow the white rabbit ping localhost -n .15 >nul cls echo Follow the white rabbit. ping localhost -n 5 >nul cls echo K ping localhost -n .15 >nul cls echo Kn ping localhost -n .15 >nul cls echo Kno ping localhost -n .15 >nul cls echo Knoc ping localhost -n .15 >nul cls echo Knock ping localhost -n .15 >nul cls echo Knock, ping localhost -n .15 >nul cls echo Knock, ping localhost -n .15 >nul cls echo Knock, k ping localhost -n .15 >nul cls echo Knock, kn ping localhost -n .15 >nul cls echo Knock, kno ping localhost -n .15 >nul cls echo Knock, knoc ping localhost -n .15 >nul cls echo Knock, knock ping localhost -n .15 >nul cls echo Knock, knock, ping localhost -n .15 >nul cls echo Knock, knock, ping localhost -n .15 >nul cls echo Knock, knock, N ping localhost -n .15 >nul cls echo Knock, knock, Ne ping localhost -n .15 >nul cls echo Knock, knock, Neo ping localhost -n .15 >nul cls echo Knock, knock, Neo. ping localhost -n .15 >nul cls echo Knock, knock, Neo. . ping localhost -n .15 >nul cls echo Knock, knock, Neo. . . ping localhost -n 5 >nul cls :start echo 010 010 10 01 0100 10 010 10 010 1001 10 010 10 10 010 101110 10 100 100 1011 echo 101010100 100 00100 010 0010 01000010 010 01000100010 01000 0100100 100 01000 echo 101 0100010 1000001 01010 10 0100010 10 0010 010010 0 010 010 0000111001011011 echo 000 010 01010010 010001001 00100100 1010 01001001 0010010 01001000100 00100111 echo 001 0010 10 010010010 010 100 10 01 010 010 010 010 10 010 10 010 10 01010 0 echo 000 010 00 001 0010 00 1000100 10 echo 1111 10 010 01 0010100 10 01001010 1 11 0001 00 001 1 1 01 0100000 1 1 11 1 echo 000 1000 10 010 100 0010 10 01 010 010 10000 010 010 01 10010010010 1001 100 echo 1010010 010 100 010 10 010 10 010 1010 010 01 01 00001 010 01 010 010 10 001 echo 111 11111 11111 11111 11111 11111 1111111 111111111 echo 101010100 100 00100 010 0010 01000010 010 01000100010 01000 0100100 100 011 echo 1111 10 010 01 0010100 10 01001010 1 11 0001 00 001 1 1 01 0100000 1 1 11 1 echo 000 1000 10 010 100 0010 10 01 010 010 10000 010 010 01 10010010010 1001 10011 echo 1010010 010 100 010 10 010 10 010 1010 010 01 01 00001 010 01 010 010 10 0011111 echo 101 0100010 1000001 01010 10 0100010 10 0010 010010 0 010 010 00001110010110111 echo 000 010 01010010 010001001 00100100 1010 01001001 0010010 01001000100 001001111 echo 0000 00 000000000000 000000000000000000 00000000000001111 10 0100000 1000000111 echo 111111111111111111111111111111111111111111111111111111111111111111111111111110 goto start

Step 8:

More to see more is coming and this instructable will be updated until no more suggestions are submitted please comment thanks!
<p>awesome! love all of this so much! check out mine, its a pseudo os that has many features, id love some feedback.</p><p>@echo off</p><p>:home</p><p>title Log in to Exp.os16</p><p>color 07</p><p>cls</p><p>echo.</p><p>echo Exp.os16 Accounts</p><p>echo =================</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo [1] Log In</p><p>echo [2] Sign Up</p><p>echo [3] Exit</p><p>echo.</p><p>set /p op=</p><p>if %op%==1 goto 123</p><p>if %op%==2 goto 223</p><p>if %op%==3 exit</p><p>goto error</p><p>:223</p><p>cls</p><p>echo Sign Up</p><p>echo ======================================</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>set /p newname=&quot;Enter new username:&quot;</p><p>if &quot;%newname%&quot;==&quot;%newname%&quot; goto inputname</p><p>:inputname</p><p>cd &quot;%userprofile%\documents&quot;</p><p>if exist &quot;cmdacoBin&quot; goto skip</p><p>if not exist &quot;cmdacoBin&quot; goto noskip</p><p>:noskip</p><p>md &quot;cmdacoBin&quot;</p><p>goto skip</p><p>:skip</p><p>cd &quot;%userprofile%\documents\cmdacoBin&quot;</p><p>if exist &quot;%newname%.bat&quot; goto namexist</p><p>if not exist &quot;%newname%.bat&quot; goto skip2</p><p>:skip2</p><p>echo set realusername=%newname%&gt; &quot;%newname%.bat&quot;</p><p>goto next</p><p>:next</p><p>echo.</p><p>set /p pswd=Enter new Password:</p><p>if &quot;%pswd%&quot;==&quot;%pswd%&quot; goto inputpass</p><p>:inputpass</p><p>cd &quot;%userprofile%\documents\cmdacoBin&quot;</p><p>echo set password=%pswd%&gt;&gt; &quot;%newname%.bat&quot;</p><p>goto next1</p><p>:namexist</p><p>echo.</p><p>echo The entered username already exists.</p><p>echo Press any key to return. . .</p><p>pause &gt;nul</p><p>goto 2</p><p>:next1</p><p>cls</p><p>echo Exp.os16 Accounts</p><p>echo =================</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo Your account has been successfully created!</p><p>echo.</p><p>pause</p><p>goto home</p><p>:123</p><p>color 07</p><p>cls</p><p>echo Exp.os16 Accounts Log In</p><p>echo ========================</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>Set /p logname=Username:</p><p>if &quot;%logname%&quot;==&quot;%logname%&quot; goto 2.1</p><p>:2.1</p><p>echo.</p><p>set /p logpass=&quot;Password:&quot;</p><p>if &quot;%logpass%&quot;==&quot;%logpass%&quot; goto login</p><p>:login</p><p>cd &quot;%userprofile%\documents\cmdacoBin&quot;</p><p>if exist &quot;%logname%.bat&quot; goto call</p><p>if not exist &quot;%logname%.bat&quot; goto errorlog</p><p>:call</p><p>call &quot;%logname%.bat&quot;</p><p>if &quot;%password%&quot;==&quot;%logpass%&quot; goto logdone</p><p>goto errorlog</p><p>:errorlog</p><p>color 0c</p><p>echo.</p><p>echo Username or Password incorrect.</p><p>echo Access denied.</p><p>pause &gt;nul</p><p>goto home</p><p>:logdone</p><p>cls</p><p>echo Command Prompt</p><p>echo ==============</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo Successfully logged in!</p><p>echo.</p><p>pause</p><p>goto account</p><p>:account</p><p>cls</p><p>cd &quot;%userprofile%\documents\cmdacoBin&quot;</p><p>call &quot;%realusername%color.bat&quot;</p><p>call &quot;%realusername%.bat&quot;</p><p>color %colorcode%</p><p>cls</p><p>echo.</p><p>echo -------------------------------------------------------------------------------</p><p>echo %realusername%</p><p>echo -------------------------------------------------------------------------------</p><p>break off</p><p>Title Command Prompt</p><p>cls</p><p>:cmd</p><p>echo Type &quot;home&quot; any time to go to the current user profile directory.</p><p>echo Type &quot;desktop&quot; any time to go to the current user desktop.</p><p>echo.</p><p>echo Type help to see list of common commands like cd, rd, md, del,</p><p>echo ren, replace, copy, xcopy, move, attrib, tree, edit, and cls.</p><p>echo Type [command]/? for detailed info.</p><p>echo.</p><p>echo Type red, blue, or green to change color of text.</p><p>echo Type normal to change the color of the text back.</p><p>echo.</p><p>echo Type apps to go to app screen.</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo Directory: %CD%</p><p>set /P CMD=Command:</p><p>if &quot;%CMD%&quot; == &quot;cls&quot; goto cls</p><p>if &quot;%CMD%&quot; == &quot;home&quot; goto home2</p><p>if &quot;%CMD%&quot; == &quot;desktop&quot; goto desktop</p><p>if &quot;%CMD%&quot; == &quot;red&quot; goto red</p><p>if &quot;%CMD%&quot; == &quot;green&quot; goto green</p><p>if &quot;%CMD%&quot; == &quot;normal&quot; goto normall12</p><p>if &quot;%CMD%&quot; == &quot;blue&quot; goto blue</p><p>if &quot;%CMD%&quot; == &quot;apps&quot; goto Beginning</p><p>cls</p><p>%CMD%</p><p>cd C:\</p><p>goto cmd</p><p>:cls</p><p>cls</p><p>goto cmd</p><p>:home2</p><p>cd /d %USERPROFILE%</p><p>cls</p><p>goto cmd</p><p>:desktop</p><p>cd /d %SystemDrive%\Users\%USERNAME%\Desktop</p><p>cls</p><p>goto cmd</p><p>:red</p><p>color 0c</p><p>cls</p><p>goto cmd</p><p>:green</p><p>color 0a</p><p>cls</p><p>goto cmd</p><p>:blue</p><p>color 9</p><p>cls</p><p>goto cmd</p><p>:normall12</p><p>color 7</p><p>cls</p><p>goto cmd</p><p>cls</p><p>:Beginning</p><p>cls</p><p>echo Type [1] to start Browser.</p><p>echo Type [2] to start Calculator.</p><p>echo Type [3] to start File editor.</p><p>echo Type [4] to start PC cleaner.</p><p>echo Type [5] to start random string generator.</p><p>echo Type [6] to start start screen</p><p>echo Type [7] to start batch file maker/editor</p><p>echo Type [8] to exit Exp.os12.</p><p>echo %TIME% %DATE%</p><p>set /p input= &quot;input number&quot; </p><p>if %input%==1 goto Browser</p><p>if %input%==2 goto Calculator</p><p>if %input%==3 goto File editor</p><p>if %input%==4 goto menu</p><p>if %input%==5 goto random</p><p>if %input%==6 goto account</p><p>if %input%==7 goto begg</p><p>if %input%==8 exit</p><p>:random</p><p>cls</p><p>setlocal enabledelayedexpansion</p><p>echo =================================</p><p>echo Exp.os16 random string generator.</p><p>echo =================================</p><p>echo %TIME% %DATE%</p><p>set /p input= &quot;Input string length.&quot;</p><p>set _RNDLength=%input%</p><p>set _Alphanumeric=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890</p><p>set _Str=%_Alphanumeric%\</p><p>:_LenLoop</p><p>if not &quot;%_Str:~18%&quot;==&quot;&quot; SET _Str=%_Str:~9%&amp; SET /A _Len+=9&amp; GOTO :_LenLoop</p><p>set _tmp=%_Str:~9,1%</p><p>set /A _Len=_Len+_tmp</p><p>set _count=0</p><p>set _RndAlphaNum=</p><p>:_loop</p><p>set /a _count+=1</p><p>set _RND=%Random%</p><p>set /A _RND=_RND%%%_Len%</p><p>set _RndAlphaNum=!_RndAlphaNum!!_Alphanumeric:~%_RND%,1!</p><p>if !_count! lss %_RNDLength% goto _loop</p><p>echo Random string is !_RndAlphaNum!</p><p>set /p uppit= &quot;Do you want to exit? (y/n)&quot;</p><p>if %uppit%==y goto Beginning</p><p>if %uppit%==n goto random</p><p>:menu</p><p>cls</p><p>echo ===========================</p><p>echo Exp.os16 PC Cleanup Utility</p><p>echo ===========================</p><p>echo %TIME% %DATE%</p><p>echo.</p><p>echo Select a tool</p><p>echo =============</p><p>echo.</p><p>echo [1] Delete Internet Cookies</p><p>echo [2] Delete Temporary Internet Files</p><p>echo [3] Disk Cleanup</p><p>echo [4] Disk Defragment</p><p>echo [5] Exit</p><p>echo.</p><p>set /p op=Run:</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 Beginning</p><p>goto error</p><p>:1</p><p>cls</p><p>echo =======================</p><p>echo Delete Internet Cookies</p><p>echo =======================</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo Deleting Cookies...</p><p>ping localhost -n 3 &gt;nul</p><p>del /f /q &quot;%userprofile%\Cookies\*.*&quot;</p><p>cls</p><p>echo =======================</p><p>echo Delete Internet Cookies</p><p>echo =======================</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo Cookies deleted.</p><p>echo.</p><p>echo Press any key to return to the menu. . .</p><p>pause &gt;nul</p><p>goto menu</p><p>:2</p><p>cls</p><p>echo ===============================</p><p>echo Delete Temporary Internet Files</p><p>echo ===============================</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo Deleting Temporary Files...</p><p>ping localhost -n 3 &gt;nul</p><p>del /f /q &quot;%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*&quot;</p><p>cls</p><p>echo ===============================</p><p>echo Delete Temporary Internet Files</p><p>echo ===============================</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo Temporary Internet Files deleted.</p><p>echo.</p><p>echo Press any key to return to the menu. . .</p><p>pause &gt;nul</p><p>goto menu</p><p>:3</p><p>cls</p><p>echo ============</p><p>echo Disk Cleanup</p><p>echo ============</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo Running Disk Cleanup...</p><p>ping localhost -n 3 &gt;nul</p><p>if exist &quot;C:\WINDOWS\temp&quot;del /f /q &quot;C:WINDOWS\temp\*.*&quot;</p><p>if exist &quot;C:\WINDOWS\tmp&quot; del /f /q &quot;C:\WINDOWS\tmp\*.*&quot;</p><p>if exist &quot;C:\tmp&quot; del /f /q &quot;C:\tmp\*.*&quot;</p><p>if exist &quot;C:\temp&quot; del /f /q &quot;C:\temp\*.*&quot;</p><p>if exist &quot;%temp%&quot; del /f /q &quot;%temp%\*.*&quot;</p><p>if exist &quot;%tmp%&quot; del /f /q &quot;%tmp%\*.*&quot;</p><p>if not exist &quot;C:\WINDOWS\Users\*.*&quot; goto skip</p><p>if exist &quot;C:\WINDOWS\Users\*.zip&quot; del &quot;C:\WINDOWS\Users\*.zip&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.exe&quot; del &quot;C:\WINDOWS\Users\*.exe&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.gif&quot; del &quot;C:\WINDOWS\Users\*.gif&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.jpg&quot; del &quot;C:\WINDOWS\Users\*.jpg&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.png&quot; del &quot;C:\WINDOWS\Users\*.png&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.bmp&quot; del &quot;C:\WINDOWS\Users\*.bmp&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.avi&quot; del &quot;C:\WINDOWS\Users\*.avi&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.mpg&quot; del &quot;C:\WINDOWS\Users\*.mpg&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.mpeg&quot; del &quot;C:\WINDOWS\Users\*.mpeg&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.ra&quot; del &quot;C:\WINDOWS\Users\*.ra&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.ram&quot; del &quot;C:\WINDOWS\Users\*.ram&quot;/f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.mp3&quot; del &quot;C:\WINDOWS\Users\*.mp3&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.mov&quot; del &quot;C:\WINDOWS\Users\*.mov&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.qt&quot; del &quot;C:\WINDOWS\Users\*.qt&quot; /f /q</p><p>if exist &quot;C:\WINDOWS\Users\*.asf&quot; del &quot;C:\WINDOWS\Users\*.asf&quot; /f /q</p><p>:skip</p><p>if not exist C:\WINDOWS\Users\Users\*.* goto skippy /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.zip del C:\WINDOWS\Users\Users\*.zip /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.exe del C:\WINDOWS\Users\Users\*.exe /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.gif del C:\WINDOWS\Users\Users\*.gif /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.jpg del C:\WINDOWS\Users\Users\*.jpg /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.png del C:\WINDOWS\Users\Users\*.png /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.bmp del C:\WINDOWS\Users\Users\*.bmp /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.avi del C:\WINDOWS\Users\Users\*.avi /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.mpg del C:\WINDOWS\Users\Users\*.mpg /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.mpeg del C:\WINDOWS\Users\Users\*.mpeg /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.ra del C:\WINDOWS\Users\Users\*.ra /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.ram del C:\WINDOWS\Users\Users\*.ram /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.mp3 del C:\WINDOWS\Users\Users\*.mp3 /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.asf del C:\WINDOWS\Users\Users\*.asf /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.qt del C:\WINDOWS\Users\Users\*.qt /f /q</p><p>if exist C:\WINDOWS\Users\AppData\Temp\*.mov del C:\WINDOWS\Users\Users\*.mov /f /q</p><p>:skippy</p><p>if exist &quot;C:\WINDOWS\ff*.tmp&quot; del C:\WINDOWS\ff*.tmp /f /q</p><p>if exist C:\WINDOWS\ShellIconCache del /f /q &quot;C:\WINDOWS\ShellI~1\*.*&quot;</p><p>cls</p><p>echo ============</p><p>echo Disk Cleanup</p><p>echo ============</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo Disk Cleanup successful!</p><p>echo.</p><p>pause</p><p>goto menu</p><p>:4</p><p>cls</p><p>echo ===============</p><p>echo Disk Defragment</p><p>echo ===============</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo Defragmenting hard disks...</p><p>ping localhost -n 3 &gt;nul</p><p>defrag -c -v</p><p>cls</p><p>echo ===============</p><p>echo Disk Defragment</p><p>echo ===============</p><p>echo.</p><p>echo %TIME% %DATE%</p><p>echo Disk Defrag successful!</p><p>echo.</p><p>pause</p><p>goto menu</p><p>:error</p><p>cls</p><p>echo Command not recognized.</p><p>ping localhost -n 4 &gt;nul</p><p>:Browser</p><p>title Batch browser</p><p>:start</p><p>cls</p><p>echo _/Main Menu\____________________________Exp.os16 Browser______________________________</p><p>echo _____________________________________________________________________________________)</p><p>echo Welcome to Exp.os16 Browser!</p><p>echo Type [1] to open search.</p><p>echo Type [2] to open apps.</p><p>echo Type [3] to Exit This Browser.</p><p>echo %TIME% %DATE%</p><p>set /p menu=</p><p>if %menu%==1 (</p><p>set menu=</p><p>goto middle</p><p>)</p><p>if %menu%==2 (</p><p>set menu=</p><p>goto end</p><p>)</p><p>if %menu%==3 goto Beginning</p><p>cls</p><p>:middle</p><p>echo _/Search\____________________________Exp.os16 Browser_________________________________</p><p>echo _____________________________________________________________________________________)</p><p>echo Enter keywords or surf the web.</p><p>echo Type &quot;1&quot; to exit Search.</p><p>echo %TIME% %DATE%</p><p>set /p keyword=</p><p>if %keyword%==1 (</p><p>set keyword=</p><p>goto start</p><p>)</p><p>start &quot;&quot; <a href="https://www.google.com/?gws_rd=ssl#q=%keyword%" rel="nofollow"> https://www.google.com/?gws_rd=ssl#q=%keyword%</a></p><p>start %keyword%</p><p>pause&gt;null</p><p>cls</p><p>goto middle</p><p>pause&gt;null</p><p>:end</p><p>cls</p><p>echo _/Apps\____________________________Exp.os16 Browser___________________________________</p><p>echo _____________________________________________________________________________________)</p><p>echo These are your apps.</p><p>echo Type [1] to start Google.</p><p>echo Type [2] to start Youtube.</p><p>echo Type [3] to start Reddit</p><p>echo Type [4] to start Instructables</p><p>echo Type [5] to Exit Apps.</p><p>echo %TIME% %DATE%</p><p>set /p select=</p><p>if %select%==1 (</p><p>set select=</p><p>start &quot;&quot; <a href="https://www.google.com/?gws_rd=ssl" rel="nofollow"> https://www.google.com/?gws_rd=ssl</a></p><p>goto end</p><p>)</p><p>if %select%==2 (</p><p>set select=</p><p>start &quot;&quot; <a href="https://youtube.com/" rel="nofollow"> https://youtube.com/</a></p><p>goto end</p><p>)</p><p>if %select%==3 (</p><p>set select=</p><p>start &quot;&quot; <a href="https://reddit.com/" rel="nofollow"> https://reddit.com/</a></p><p>goto end</p><p>)</p><p>if %select%==4 (</p><p>set select=</p><p>start &quot;&quot; <a href="https://instructables.com/" rel="nofollow"> https://instructables.com/</a></p><p>goto end</p><p>)</p><p>if %select%==5 (</p><p>set select=</p><p>goto start</p><p>)</p><p>:Calculator</p><p>title Exp.os16Calculator</p><p>:main</p><p>cls</p><p>echo ========================================</p><p>echo Your previous Calulated number was %sum%</p><p>echo ========================================</p><p>echo %TIME% %DATE%</p><p>echo.</p><p>echo Enter the specified number to continue..</p><p>echo.</p><p>echo [1] Addition</p><p>echo.</p><p>echo [2] Subtraction</p><p>echo.</p><p>echo [3] Divison</p><p>echo.</p><p>echo [4] Multipication</p><p>echo.</p><p>echo [5] Square, Cube or any power</p><p>echo.</p><p>echo [6] Exit</p><p>set /p do=Value.</p><p>if %do%== 1 goto add</p><p>if %do%== 2 goto sub</p><p>if %do%== 3 goto div</p><p>if %do%== 4 goto mul</p><p>if %do%== 5 goto power1</p><p>if %do%== 6 goto Beginning</p><p>echo.</p><p>cls</p><p>echo Invalid value = %do%</p><p>echo.</p><p>pause</p><p>cls</p><p>goto main</p><p>:add</p><p>cls</p><p>echo ADDITON</p><p>echo.</p><p>set /p no1=&quot;num1. &quot;</p><p>echo +</p><p>set /p no2=&quot;num2. &quot;</p><p>set /a sum=no1+no2</p><p>echo ------------</p><p>echo %sum%</p><p>echo.</p><p>pause</p><p>cls</p><p>goto main</p><p>:sub</p><p>cls</p><p>echo SUBTRACTION</p><p>echo.</p><p>set /p no1=&quot;num1. &quot;</p><p>echo -</p><p>set /p no2=&quot;num2. &quot;</p><p>set /a sum=no1-no2</p><p>echo ------------</p><p>echo %sum%</p><p>echo.</p><p>pause</p><p>cls</p><p>goto main</p><p>:div</p><p>cls</p><p>echo DIVISON</p><p>echo.</p><p>set /p no1=&quot;num1. &quot;</p><p>echo /</p><p>set /p no2=&quot;num2. &quot;</p><p>set /a sum=no1/no2</p><p>echo ------------</p><p>echo %sum%</p><p>echo.</p><p>pause</p><p>cls</p><p>goto main</p><p>:mul</p><p>cls</p><p>echo MULTIPLICATION</p><p>echo.</p><p>set /p no1=&quot;num1. &quot;</p><p>echo *</p><p>set /p no2=&quot;num2. &quot;</p><p>set /a sum=no1*no2</p><p>echo ------------</p><p>echo %sum%</p><p>echo.</p><p>pause</p><p>cls</p><p>goto main</p><p>:power1</p><p>cls</p><p>echo Square, Cube or any power</p><p>echo.</p><p>echo Select the number</p><p>set /p num=</p><p>cls</p><p>echo Select the power</p><p>set /p pow=</p><p>set /a pow=%pow%+1</p><p>set ans=%num%</p><p>cls</p><p>:power2</p><p>set /a pow=%pow%-1</p><p>if %pow% LSS 1 goto next</p><p>set /a ans=%ans%*%num%</p><p>goto power2</p><p>:next</p><p>echo Your answer is %ans%</p><p>echo.</p><p>goto main</p><p>:File editor</p><p>title Exp.os16File editor</p><p>:options</p><p>cls</p><p>echo Exp.os16 File editor.</p><p>echo Type [1] to edit a File that already exists.</p><p>echo Type [2] to edit the name of your document.</p><p>echo Type [3] to edit the contents of your File.</p><p>echo Type [4] to exit.</p><p>echo %TIME% %DATE%</p><p>set /p you=&quot;&gt;&quot;</p><p>if %you%==1 goto 1</p><p>if %you%==2 goto 2</p><p>if %you%==3 help</p><p>if %you%==4 goto Beginning</p><p>:1</p><p>echo Name Your File.</p><p>set /p name=&quot;&gt;&quot;</p><p>goto options</p><p>:2</p><p>cls</p><p>echo - %name%</p><p>echo To add another line to your text press enter. To stop editing press the big</p><p>echo red X in the corner of this screen.</p><p>echo.</p><p>echo Cannot use symbols:&quot; &gt; &lt; | &quot; if you use any of them the window closes.</p><p>echo.</p><p>set /p content=&quot;&gt;&quot;</p><p>echo %content%&gt;&gt;%name%</p><p>cls</p><p>echo Save Successful!</p><p>ping localhost -n 2 &gt;nul</p><p>goto 2</p><p>:help</p><p>cls</p><p>:0</p><p>cls</p><p>echo - %name%</p><p>echo Type in the name.</p><p>echo The file has to be in the same directory as notepad.</p><p>set /p edit=&quot;&gt;&quot;</p><p>edit %edit%</p><p>goto options </p><p>:begg</p><p>cls</p><p>echo ==========================</p><p>echo Exp.os16 batch file editor</p><p>echo ==========================</p><p>echo %TIME% %DATE%</p><p>:begg</p><p>set /p opttt=&quot;edit file? (y/n)&quot;</p><p>if %opttt%==&quot;y&quot; goto hurrr</p><p>if %opttt%==&quot;n&quot; goto beggg</p><p>:beggg</p><p>set /p filename=&quot;name file&quot;</p><p>set /p fileinsides=&quot;create file&quot;&quot;</p><p>if exist &quot;expfilebin&quot; goto hurdur</p><p>if not exist &quot;expfilebin&quot; goto hurdurr</p><p>:hurdurr</p><p>md &quot;expfilebin&quot;</p><p>goto hurdur</p><p>:hurdur</p><p>cd &quot;%userprofile%\documents\expfilebin&quot;</p><p>echo @echo off&gt;&gt; &quot;%filename%.bat&quot;</p><p>echo echo %fileinsides%&gt;&gt; &quot;%filename%.bat&quot;</p><p>echo pause&gt;&gt; &quot;%filename%.bat&quot;</p><p>:hurrr</p><p>set /p fileopen=&quot;open file and state file name&quot;</p><p>if exist &quot;%fileopen%&quot; goto hhh</p><p>if not exist &quot;%fileopen%&quot; goto unfound</p><p>:hhh</p><p>set /p ff=&quot;input file contents&quot;</p><p>echo echo %ff%&gt;&gt; &quot;%fileopen%.bat&quot;</p><p>echo pause&gt;&gt; &quot;%fileopen%.bat&quot;</p><p>goto exx</p><p>:unfound</p><p>echo file not found</p><p>pause</p><p>goto begg</p><p>:exx</p><p>set /p exxx=&quot;exit (y/n)&quot;</p><p>if %exxx%==y goto Beginning</p><p>if %exxx%==n goto begg</p><p>it has like 9 applications in one, made entirely with batch programming. it comes with a pc cleaner, login, calculator, file maker/editor, text color changer, and much more! id love feedback from you cause you obviously know your stuff. thank you.</p>
<p>so I havent run the code but just by skimming through it I have a few suggestions.</p><p>A. the if command can do other things than just goto this annoys me when people use goto rather than just running a command (not than be mean).</p><p>This line for example </p><p>if &quot;%CMD%&quot; == &quot;cls&quot; goto cls</p><p>Can be changed to this</p><p>if &quot;%CMD%&quot; == &quot;cls&quot; cls</p><p>You save many lines and don't have to use the goto command.</p><p>Next</p><p>Your calculator uses seperate operations however you can preform any operation (+-/&times;) I believe that Sejma has a tutorial about a multi-operation calculator</p><p>~~Batchcc</p>

About This Instructable

2,998views

19favorites

License:

More by Batchcc:Extract Pictures From Word Documents Save your flash game progress Batch safely store passwords 
Add instructable to: