Running PB/CC from DOS

Run PBCC.EXE from a command (DOS) prompt, using a command-line with the following syntax:

PBCC.EXE [/Ipath] [/L] [/Q] [/Cfilename] FileName

…where FileName is the name of the source file to compile.  If you just type PBCC (omitting FileName), you'll get a dialog box asking for the name of the file to compile.

PowerBASIC first attempts to open the source file using the FileName specified.  If the file cannot be opened and FileName does not have an explicit .BAS extension, PowerBASIC appends .BAS to the specified file name, and attempts to open that file.  If FileName is a Long File Name (LFN), it must be enclosed in quotes.

PowerBASIC also supports Long File Names in all metastatements, for example:

#INCLUDE "C:\Program Files\PowerBASIC\LIBRARY.INC"

 

See Also

Running PB/CC from Windows

PB/CC Command Line Switches

The Integrated Development Environment