Accessing Directories at runtime, Prgoram Files and app.path question 
Author Message
 Accessing Directories at runtime, Prgoram Files and app.path question

Part 1
I have a biorhythm application which uses the directory "Program
Files/Biorythm"
I have hardcoded this directory and thus in Austria for example I get the
error File not found
The reason is on the Austrian  device its no longer Program files but
"harprog fil" <<Not really I just dont speak Austrian and cant remmenber the
folder name but you get the idea.  So is there a system variable for reading
the Program Files Folder?
Part 2.
If I use the App.Path object variable it returnes . in the de{*filter*}.  which
if my app and another app is running it seams like this doesnt always return
the same value. At least in debug mode.  So sorry for the mumbling QUESTION
Can I use the App.Path Vasriable to get the Applications directory. (Not the
current directory) and can it change during the programs execution?
Summary
I need to access a file in a specific directory on any device I install to.
Please give a simple solution in a much more coherant manner than I have
described my problem.

Tom Dornseif



Sun, 24 Oct 2004 22:38:04 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Runtime Files from App Path only

2. Runtime files from App Path

3. Runtime files from App Path only

4. App.Path don't refer to application directory in VB4 Pro

5. VB Question - Data Bound Combo & Directory Path

6. Newbie Question: path for root directory on virtual domain hoster

7. distributing an app written in access 2000 runtime but client still uses access 97

8. Creating relative directory path given fully-qualified path

9. Query Active Directory for User's Home Directory Path

10. Getting Start Menu Directory and Favorites Directory Paths by API

11. Populate a table with the path and file from a directory

12. Help: Need dialog to select drive and directory path (not files)

 

 
Powered by phpBB® Forum Software