Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File locations
Message
From
05/10/2001 18:21:44
 
 
To
05/10/2001 17:47:49
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00565023
Message ID:
00565032
Views:
21
>What is the best way to code a program for accessing files. For instance...if you hard code into the program to open a file "open c:\example\abc.txt", and the user did a default install, everything is fine. But if the user decides to change the default install directory, the file is not there.
>
>Help.

Always use App.Path in front of the file name to get to the application's directory. If the files are located within another subdirectory, use App.Path & "\myFolder\abc.txt".
HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform