>>I think SYS(2014) is the closet you can get.
>>
>Thanks Sergey, I've tried sys(2014) with home(), sys(2003), sys(2004), and fullpath(). The problem is that if the file can't be located in the MS-DOS path, a path and the file name are returned as if the file had been found in the current default directory or in the root directory. It is very misleading. I must be doing something wrong. Somehow I am not getting the combinations correctly entered to return what I need. I am trying to locate the directory PROGS from this position:
>
>If I am in c:\profiler\data and I need to get to c:\pro32\progs, it should return "..\..\pro32\progs", but I can't seem to get it.
>
>
>Or if I am in c:\pro32 and I need to get to c:\pro32\progs.
>
>No matter what I enter, I cannot get it to return '..\progs' or even the fullpath.
>
>Sheesh! This is so frustrating....
Hi Tracy,
AFAIK, SYS(2014) doesn't care if file exist or not. You can do something like
? JUSTPATH(SYS(2014, "c:\pro32\progs\" + SYS(2015)))
and it should return correct relative path
--sb--