When you are ready to compile a program, say test.pas, do the
following when the command line interface is at the directory where you
put your Pascal files. The following is an example of what you may want
to do. (It assumes your Pascal files are in c:\homework\cis31\project1,
and mypas.bat is already saved in that directory.)
c: cd \homework\cis31\project1 mypas test.pas test
Of course, if your program does not compile (with syntax errors), don't bother with running the program.