Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows system directory
Message
From
22/10/2000 10:35:20
 
 
To
22/10/2000 10:28:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00428756
Message ID:
00432595
Views:
24
>Hi Luc,
>
>
>> I am looking for a funtion that return the pathname of the
>> windows system directory.
>
>The easiest one is:
>
> ? GETENV("WINDIR")

That gets the environment's Windows Directory, not the system directory, and is frobbable. There's a Windows APIU call GetSystemDirectory() documented in the API section and in the FAQ that does this correctly, and you can use the WSH SpecialFolder's or the SHGetFolderPath() API call as well, and not have the risk of screwing the pooch.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform