|
-
Feb 15th, 2000, 07:39 AM
#1
Thread Starter
Junior Member
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).]
-
Feb 15th, 2000, 11:18 AM
#2
New Member
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... 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|