Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding windows root directory
Message
From
18/12/1997 09:18:02
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00066726
Message ID:
00066881
Views:
48
>>>I need to be able to load up all of the windows printers from the win.ini file. I can do this by parsing the win.ini file, but how can I get the windows root directory using a foxpro command?
>>>
>>>TIA
>>>Paul
>>
>>In VFP3, there was a function called winhome() in the foxtools.fll
>>which might have been available in FP26W.
>
>I don't see WinHome() in VFP3 FoxTools, but there is always GETENV("WINDIR") because Windows set an environment variable equal to the Windows directory.


I don't thing that windir environment variable (set by Windows 95)
was being set in Windows 3.1 and the original message didn't specify the OS.

Anyway, concerning the VFP winhome() function, type the following:
SET LIBRARY TO FOXTOOLS
? WINHOME()
__________________________________________________
Mesa Vista Software (david@mesa-vista.com)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform