Introduction: MS-DOS Batch Fun
Hello everyone! We are going to see the secrets and workings of MS-DOS!
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Commands, Commands, Commands.
Here is a GREAT link for commands
Step 2: BATCH FILES! Yay!
"But... what if I want to run a LOT of commands repeatly without getting tired?" You say. Well... that`s were BATCH files come in. Let`s do a run-down of batch files, I don`t mind if you build off them, if, IF you give me credit for the original batch.
Step 3: Crazy Cmd
Number #1: CrAzY cmd
set /p UI=c:/.
save as Cmd.bat
if you`re not using Wine replace c:/. with c:/>
For some thing crazy to happen type >>CMD.BAT || or >CMD.BAT ||
Step 4: MyCMD
number #2 : MyCMD
:start ::this is optional onless you know you will want to reset with goto start.
set /p command= ::Your prompt here.
Step 5: Crazy Nethack
#3: Annoying NetHack
You ever heard of the console(CMD, BASH, SH, etc.) game NetHack?
This batch can(And will.) annoy any Windows newbie swapping from Linux.
Note:Place in System32 or it won`t work.
echo FATAL ERROR:
echo Your operating system is not supported
Save as nethack.bat
Step 6: Some Hacks I Found Out.
How to get back to the directory that the batch file is in no matter where it is!:
How to loop for a preset amount of times:
set /a loopvar=10
:: ^How many times to loop.
::Replace ECHO %loopvar% with your commands
if %loopvar% EQU 1 (
) ELSE (
Step 7: Done, Already??
Yep, we are done.