Hi,
I am facing a typical problem for which I would like to seek some help.
I have created one Map drive in my system for some shared folder in the network. Now what i require is to read some file at this location.
For this purpose I created one
Java application that reads the file from the map drive location. The program is working fine when i run it as a java process in windows XP OS.
But when i run the same application as a Windows Service, the application is unable to detect the map drive and is unable to read the file even though the map drive is accessible in windows system.
For this problem I searched a lot and found that Windows don't allow to access Map drives if application is running as a SERVICE. ie Map drives are only accessible if the application runs as a PROCESS. But my limitation is that I can not run my application as a process.
Thus I would be thankful if someone helps me out with some solution as to how would I be able to access the map drive through my application which runs as Windows SERVICE. I have read some where that it can be made possible by creating a Java Service Wrapper, but I don't knw how to do that !!!
I have even tried to access the file using UNC convention, but UNC fails for the n/w share folder which requires password to open them. Thus UNC convention is also not fully working for my application.
Thus can anyone help to create a Java Service Wrapper or give some example to solve the problem of accessing UNC path for the folder that requires password to open it.
In short, can anyone help me out with some way of accessing MAP Drive / network shared folder when application is running as a Windows SERVICE.
I am using Windows XP on my system.
Thanks in advance
Saurabh