<--- Turn the page
   
(contents page)
   
Turn the page ---> A Few Batch Files to Speed Up Your Development |
These are a few Batch files I use in my DOS development: To create a .COM file from a applicable .ASM file: REM start of MA.BAT file *************** @ECHO OFF MASM %1; LINK %1; EXE2COM %1 DEL %1.obj DEL %1.exe REM end of MA.BAT file **************** How about a menu using the CHOICE command: @echo off :LOOP cls echo main menu echo. echo A - Run Quick Basic echo B - Run Quick C echo C - Run Quick Pascal echo Q - Quit to DOS echo. CHOICE /c:ABCQ Enter Choice: IF NOT ERRORLEVEL 1 GOTO DONE IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 QB IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 QC IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 TURBO IF ERRORLEVEL 4 GOTO DONE PAUSE GOTO LOOP :DONE |
How about an easy way to create a batch file with out using an editor of any kind other than DOS itself? Try: COPY CON filename.bat echo off cls echo This is a line echo This is another line REM this could be any line ^Z {enter}Note the ^Z is the actual Ctrl-Z key combination and the {enter} is the actual enter key. You should have a bat file named 'filename.bat' with the contents of: echo off cls echo This is a line echo This is another line REM this could be any line |
<--- Turn the page
   
(contents page)
   
Turn the page ---> Page 4