Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program Files folder - How to get the name?
Message
From
16/09/2002 05:10:27
 
 
To
13/09/2002 21:10:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00700175
Message ID:
00700731
Views:
10
Hi!

Is it always available? Seems this approach is much simpler than use of Windows API function. Would it work with localized versions of Windows?

>>Hi!
>>
>>It seems it is always following, but I'm not sure:
>>
>>
>>&& GetWindowsDirectory to variable lcWinDir
>>
>>lcProgFilesDir = JustDrive(m.lcWinDir) + "\Program Files"
>>
>
>Wouldn't work on my box - I've set this directory to be on D: drive, while windows is on C:.
>
>But there's a simple solution, works for me (both boxes running W2k Pro - needs checking for other versions of Windows):
>
>lcProgDir=getenv("ProgramFiles")
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform