Results 1 to 2 of 2

Thread: File Path

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Location
    Tyler, Texas
    Posts
    15

    File Path

    In my application I am trying to refernce an *.ini file that will reside on a server that is mapped to by the client machine. Since this is going to be distrubuted to different clients I'm not sure what what server/drive to map the path to. Can this be done without hard coding it in my application. I know a little about App.Path, but doesn't that just reference where the aplication is sitting. I hope this makes sense!!!! Thanks in advance for your help....

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    you can reference the file directly without the drive letter...

    if the exe is on the same drive as the INI file.. as in they are both in the same folder.. or the ini is in a subfolder of the exe.. then you can use app.path.. otherwise try something like this

    \\COMPUTERNAME\DRIVENAME\FILENAME.INI

    this will work as well instead of using the actual drive letter.. that way it doesn't matter what drive they have this share mapped to

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