|
-
Apr 2nd, 2002, 11:36 AM
#1
Thread Starter
New Member
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....
-
Apr 2nd, 2002, 11:47 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|