[fpc-pascal] InstantFPC and argv

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Fri May 4 17:32:44 CEST 2012



On Fri, 4 May 2012, michael.vancanneyt at wisa.be wrote:

>
>
> On Fri, 4 May 2012, dhkblaszyk at zeelandnet.nl wrote:
>
>> 
>> 
>> I'm creating a script to be executed by instantfpc when I noticed
>> that paramstr(0) does not reflect the location of the script but the
>> location of the cached executable. Is there a way to alter this location
>> programatically to the script location? Is there an alternative way?
>
>
>
> The solution can be found on
>
>  http://www.freepascal.org/docs-html/prog/progsu38.html
>
> Const
>  ScriptName = {$INCLUDE FILE};

Come to think of it, probably not 100% what you want. 
It will contain the name of the temporary script file.

Michael.



More information about the fpc-pascal mailing list