File Location

G

Guest

I have a console application which reads the config file to obtain the path
of the file where a file is to be written. Everything works fine on my
workstation, but now I need to move the application to a shared drive and so
I need to change the value in my config file to point to this shared drive.
I am not sure how to specify the shared drive name....so right now it says
something like "c:\MyFiles\Errors" if I am moving to a shared folder whose
name is "Fred", how do I specify "Fred:\MyFIles\Errors"?
 
G

Guest

If you have a computer called "Fred" which has a share called "FredShare",
then you would specify it as
\\FRED\FreShare$\thefile.txt
assuming thefile.txt is in the root of the folder that is shared as
"FredShare".

However, mapped drives will abstract from you the necessity to always have
it on the same server without needing to change the config file. (If you move
file server, you can just re-map the drive, and the config file won't have to
change for it to be able to point to the new location). However there is a
disadvantage in this, in that windows services can't use mapped drive letters
- they don't understand them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top