>>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....
>Tracy
Tracy,
Somewhat depending on how your app is called.
ShellExecute() or run /n called app would have its own dir as application.servername. If was called somthing like do ... then servername would be callers. Since caller could pass its default path I think first one is what you're seeking ?
Cetin