Results 1 to 2 of 2

Thread: Location of file opened

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    MN, USA
    Posts
    25

    Post

    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).]

  2. #2
    New Member
    Join Date
    Aug 1999
    Posts
    13

    Post

    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
  •  



Click Here to Expand Forum to Full Width