Syntax: @runpath
Return: string
Returns a string containing the location of the program currently being executed. If @runpath is being executed as a child program from a parent as part of an include or exec statement, the string will return the location of the parent program.
Examples
If the program d:\myprogs\program1.prg has the line:
string y = @runpath
then y will contain “D:\MYPROGS\PROGRAM1.PRG”, if program1 is run by itself, and will return the location of the parent program otherwise.
Cross-references