Applications folder (C:\Program Files\) ?

sbayeta
03-16-2004, 05:14 AM
Hi,
How can I determine the apps folder in my Windows ? I know in most machines it will be "C:\Program Files", but it's possible that windows be installed on other drive, or that a different language be used.
I need this to work on all windows flavors (i.e. 9x and NTs)
Thanks in advance

sseller
03-16-2004, 06:06 AM
strPath = App.path

sbayeta
03-16-2004, 06:14 AM
strPath = App.path
Well, that won't help, as app.path returns d:\projects\test\, wich is where my app resides

sseller
03-16-2004, 06:19 AM
When the app is compiled, it will return the path of the exe. When its running in the IDE it returns the path of the vbp. Isnt' that what you want?

sbayeta
03-16-2004, 06:45 AM
When the app is compiled, it will return the path of the exe. When its running in the IDE it returns the path of the vbp. Isnt' that what you want?
No.
I just need to determine what's the default folder where Windows install its applications.
I'll be using this path to perform some searches and other tasks.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum