Results 1 to 2 of 2

Thread: File locations

  1. #1

    Thread Starter
    Addicted Member kalicki's Avatar
    Join Date
    Mar 2001
    Location
    Orlando, Florida
    Posts
    134

    File locations

    Can anybody tell me how to make it so that a file location, such as a text file, could be variable, but hard-coded. What I mean is like when something is installed, it doesn't get installed to the same spot on all computers. I was thinking something like just the folders after it, sort of like in HTML.

    Example:

    Not this

    blah.blah = "C:\blah\blah\blah.txt"

    But something like this

    blah.blah = "\blah\blah\blah.txt"

    In the second case, the EXE would be run from C:\

    Thanks for any help,
    Bryan Kalicki

  2. #2
    Hyperactive Member Ed Lampman's Avatar
    Join Date
    Mar 2001
    Posts
    273
    You could use App.Path to have the file located in the same directory that your .EXE is located. Or, check out the Package & Deployment Wizard. It offers other variable names that correspond to the Windows directory and others.

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