next up previous contents
Next: Online Resources Up: Tools for Programming in Previous: Command Line Interface   Contents

Alternative Method to Invoke FreePascal

Download http://www.mobots.com/ARC/CIS31/samples/mypas.bat and save it to a folder where you put your Pascal (.pas) files. If you installed FreePascal at a drive or folder other than the default one, you need to edit this batch file to reflect your custom settings. Use the DOS editor instead of notepad to edit the batch file.

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.



Tak Auyeung 2003-12-03