General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only