Hello everyone and today i will be showing you how to program in notepad (Simple programs)
first open up notepad (windows 7 and xp etc) and type
@echo off
color 0a
:menu
cls
echo Hello world.
pause
now save it as all files and save it as whatever you want then add the extension .bat
that will save it as a batch file.
Code Definitions for the code in thus program
@echo off - hides the code
color 0a - changes the text color to green and background to black. First letter is the background and second is the text color type color red in cmd for color codes.
:menu or :(whatever you want) makes a location in the program.
cls - clears the screen
echo - says what you typed after echo
pause - Says Press any key to continue... ALWAYS PUT THIS IN THE END OF THE PROGRAM
TO STOP IT FROM CLOSING AUTOMATTICALY ONCE YOU START THE PROGRAM
UP.
there you go!
No comments:
Post a Comment