mapped-drive

Find UNC path of a network drive?

别等时光非礼了梦想. 提交于 2019-11-26 22:31:18
问题 I need to be able determine the path of the network Q drive at work for a WEBMethods project. The code that I have before is in my configuration file. I placed single character leters inside of the directories just for security reasons. I am not sure what the semi-colon is for, but I think that the double slashes are were the drive name comes to play. Question: Is there an easy way on a Windows 7 machine to find out what the full path of the UNC is for any specific drive location? Code:

Java WatchService not generating events while watching mapped drives

佐手、 提交于 2019-11-26 14:01:32
问题 I implemented a file watcher but I noticed that java nio file watcher doesn't generate events for files being copied on mapped drives. For instance, I've run the file watcher on Unix to watch a local directory ( /sharedfolder ) which is mapped on windows ( H:\ ), and then I've put a file in this directory ( H:\ ) but the file watcher hasn't generated any event. Now if I run the file watcher on windows to watcher the mapped drive ( H:\ ) which refers to a unix path ( /sharedfolder ) and from

Map a network drive to be used by a service

为君一笑 提交于 2019-11-26 03:15:42
问题 Suppose some Windows service uses code that wants mapped network drives and no UNC paths. How can I make the drive mapping available to the service\'s session when the service is started? Logging in as the service user and creating a persistent mapping will not establish the mapping in the context of the actual service. 回答1: You'll either need to modify the service, or wrap it inside a helper process: apart from session/drive access issues, persistent drive mappings are only restored on an