Need to map a share path to a local network drive ( for ex : \\<servername>\\<foldername> to a local drive like X: or Y: which will b connected only thru username and password)
how this can be done in java . Any APIs which can be useful to do this ?
Printable View
Need to map a share path to a local network drive ( for ex : \\<servername>\\<foldername> to a local drive like X: or Y: which will b connected only thru username and password)
how this can be done in java . Any APIs which can be useful to do this ?
Do you mean you want to map the drive on the client's computer or you want to locate an already existing path for the program to use?
If you are wanting to map the drive, I would assume that cannot be done. I say that because Java is not inherently designed to metal with system resources and other restricted stuff. With that being said, I believe you can still change those sorts of things, but it is usually extremely complex and I have no idea how it's done.
There is probably someone else that has a better understanding of what you are trying to do.
Read the API doc for the File class. It discusses using UNC paths