Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinDir environment variable woes.
Message
From
26/07/2007 17:56:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
WinDir environment variable woes.
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Vista
Miscellaneous
Thread ID:
01243969
Message ID:
01243969
Views:
74
Getting bit by Vista again. But this time it hurt.

When issueing Fox statement GETENV("WinDir") in XP I get "C:\Windows", but in Vista I get "%SystemRoot%". This is useless in determining where the OS is installed. Does anyone know of either where "%SystemRoot%" is stored or am alternitive to the GetEnv() method? I need to determine the root drive letter of the boot HD.

Thanks
Greg Reichert
Next
Reply
Map
View

Click here to load this message in the networking platform