Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get path to a directory
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00593473
Message ID:
00593481
Views:
26
>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,

You might be able to do it with SYS(2014).
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform