Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why SET('default') return only the drive letter?
Message
De
15/09/2006 12:10:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
15/09/2006 11:38:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01154143
Message ID:
01154168
Vues:
11
This message has been marked as a message which has helped to the initial question of the thread.
>If I do this...
>set default to C:\Windows\Temp
>
>and after this...
>?set("default")
>
>it returns only C:
>but the setting to complete path is ok in my test.
>
>Is it normal? And why?

I think this is by design - it is supposed to give you the drive letter. It is only as a convenience for the user that the SET DEFAULT command also allows a directory; whereas in DOS, you need two separate commands to select the drive, and the directory.

One way to get the full path is the following:
? fullpath("")
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform