Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why SET('default') return only the drive letter?
Message
From
15/09/2006 12:10:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/09/2006 11:38:36
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01154143
Message ID:
01154168
Views:
10
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform