lcPath = justpath(sys(16, 0)) if atc('PROCEDURE', lcPath) > 0 lcPath = substr(lcPath, rat(':', lcPath) - 1) endif atc('PROCEDURE', lcPath) > 0If you need to determine the path of another application (ie. one VFP app locating another or a non-VFP app), then you need to hope that the other app has written information about its location to the Registry. A common place apps do that is HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\EXE name.