-
I need to know the location of my program on the user's computer, so that when the program executes it's going to open the files where it keeps the data in the same directory. In other words how do I keep track of the .dat files that I create? Is there any way to do that?
[This message has been edited by Kiegs219 (edited 02-15-2000).]
-
Use the command "App.path" (of course, without the quotes)
Use it such as this:
'begin code
dim filename as string
dim f as integer
dim a as string
filename = App.path + "\filename.dat"
f = freefile
open filename for input as #f
Input #f, a
'end code
or if you just want to know the applications path, use app.path and store that as a variable.
I don't know if this was what you were looking for or not, but... ;)