Fabian,
You can use FULLPATH(). This works if VFP can find the file (SET PATH). Beware that FULLPATH() may return a filename that doesn't exist. For this reason make sure you check that the file exists:
lcFullPath = FULLPATH("VFP6.EXE")
IF FILE(lcFullPath)
ELSE
ENDIF
>mmhh... justPath() returns the path of a given pathname/filename... doesn´t it?
>
>what I want is to retrieve the path of a file that I don´t know where it is...
>i.e. : find Prog.exe file... maybe it's in Program Files\Prog\Prog.exe or maybe in Archivos de Programa\Prog\Prog.exe
>
>so I'd like something like path = findpath("Prog.exe")
Daniel