Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding windows root directory
Message
De
18/12/1997 09:18:02
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00066726
Message ID:
00066881
Vues:
51
>>>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform