>>>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()