Results 1 to 6 of 6

Thread: [RESOLVED] App.Path??

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Location
    Ca
    Posts
    124

    Resolved [RESOLVED] App.Path??

    Hi All

    Just a quick Question

    I've seen some code that has something to do with app.path.

    I want to be able to use my app and open a file in that same directory.But if my app gets moved onto another computer i still must have it open that file. I don't want to have to put in the path for each computer.

    Thanks for any help

    Reston

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: [RESOLVED] App.Path??

    App.Path is the path to the directory in which running exe resides.

    so in your code you put:
    VB Code:
    1. Open App.Path & "\myfile.txt" For Input As #1
    or whatever.

    Is that what you were asking?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Location
    Ca
    Posts
    124

    Re: [RESOLVED] App.Path??

    I was messing around and figured it out


    Open App.Path & "U-CUT3.t" For Output As #iOutputFile

  4. #4
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: [RESOLVED] App.Path??

    app.path will give you the installed path of your project. you dont need to put the path for each computer.
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Location
    Ca
    Posts
    124

    Re: [RESOLVED] App.Path??

    Thanks for the quick reply

  6. #6
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: [RESOLVED] App.Path??

    oh...i was late...
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


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