Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get path to a directory
Message
From
12/12/2001 15:09:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/12/2001 15:02:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00593473
Message ID:
00593484
Views:
20
>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

Tracy,
Something like sys(2014) with home() ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform