Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get path to a directory
Message
 
 
À
12/12/2001 16:04:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00593473
Message ID:
00593553
Vues:
30
This message has been marked as a message which has helped to the initial question of the thread.
>>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....

Hi Tracy,

AFAIK, SYS(2014) doesn't care if file exist or not. You can do something like
? JUSTPATH(SYS(2014, "c:\pro32\progs\" + SYS(2015)))
and it should return correct relative path
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform