Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get path to a directory
Message
From
12/12/2001 16:04:03
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00593473
Message ID:
00593533
Views:
23
>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
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform