[fpc-devel]MAKE & 0th parameter...

Peter Vreman peter at freepascal.org
Thu Nov 9 13:31:31 CET 2000

> Hi/2 all.
> I forgot this. If a program is launched by MAKE, its 0th parameter is
> its filename not full path of it.
> This is also for DMAKE.
> Keep this in mind, please.
> Hmm... Nonsense ? ^__________^

ParamStr(0) should return the full pathname of the executable running. See the tp7 manual.

If you want to get the 0th parameter on the commandline you can use argv[0]

More information about the fpc-devel mailing list