>>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
>
>A quick and dirty workaround couldbe (do not have Vista, so can not test it)
>
>
>? Getenv(Strtran(Getenv('WinDir'), '%', ''))
>
>
>[Update] or just GetEnv('SystemRoot') of course
>[Update] ah... root drive letter... then Getenv('SystemDrive')
Despite the fact that "SystemDrive" does not appear in the list of available enironment variables, it worked! Thanks for the suggestion.
Greg Reichert