function ParamStr (ParmNumber: Integer): String;
Please note: If you are using the Dos (DJGPP) or MS-Windows (mingw32) version of GPC and are getting unexpected results from ParamStr, please see the section “Command-line Arguments Handling in DJGPP” of the DJGPP FAQ list.
ParamStr is a Borland Pascal extension.
program ParamStrDemo; var i: Integer; begin WriteLn ('You have invoked this program with ', ParamCount, ' arguments.'); WriteLn ('These are:'); for i := 1 to ParamCount do WriteLn (ParamStr (i)) end.