Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows System Directory Path
Message
 
To
10/04/2003 14:41:29
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00776268
Message ID:
00776272
Views:
12
nSize = 255
lpBuffer = SPACE(nSize)

Declare Long GetSystemDirectory in "kernel32.dll";
String @, ;
Long @

=GetSystemDirectory(@lpBuffer,@nSize)
?"SystemDirectory: "+left(lpBuffer,at(" ",lpBuffer)-2)


>Please can somebody help me to get a function to get the path to the WINDOWS SYSTEM DIRECTORY for all Windows version (Windows 98 until XP).
>SYS(2004) brings me depending on the Windows version C:\program files\.....
>
>I would need to address the REAL WINDOWS system or system32 directory.
>Thank you so much for your help.
>
>Johann Pietschnig
>pietschnig@usa.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform