Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get path to a directory
Message
 
 
To
12/12/2001 15:02:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00593473
Message ID:
00593477
Views:
14
I think SYS(2014) is the closet you can get.

>Is there anyway to get the relative path to a specific directory? For instance Here is my directory structure (shortened version):
>
>\profiler
>\profiler\data
>\profiler\progs
>\profiler\progs\source
>
>etc...
>
>Now, if my app is called from another app, I need to find the relative path to the \profiler\progs subdirectory. The problem is that the progs directory could be under a different directory instead of \profiler. it could be like so:
>
>\pro32
>\pro32\data
>\pro32\progs
>\pro32\progs\source
>
>So if my current default directory is \pro32\data and I want to know how to get to \pro32\progs, the answer SHOULD be "..\progs." The subdirectory structure will always be the same, but the parent directory could change. Is there a function/way of doing this programmatically?
>
>TIA!
>Tracy
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform