Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get path to a directory
Message
De
12/12/2001 15:02:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Get path to a directory
Divers
Thread ID:
00593473
Message ID:
00593473
Vues:
72
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
.·*´¨)
.·`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"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform