Questions tagged [mapped-drive]

Association of a drive letter (A through Z) with a remote storage in Microsoft Windows and OS/2

From wikipedia:

Drive mapping is how Microsoft Windows and OS/2 associate a local drive letter (A through Z) with a shared storage area to another computer over a network.

169 questions
239
votes
13 answers

Map a network drive to be used by a service

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…
VoidPointer
  • 17,651
  • 15
  • 54
  • 58
143
votes
7 answers

Find UNC path of a network drive?

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…
Doug Hauf
  • 3,025
  • 8
  • 46
  • 70
113
votes
12 answers

Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed

Using Windows 2008 R2. On our server we get this error: "Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and…
raphael75
  • 2,982
  • 4
  • 29
  • 44
71
votes
4 answers

Determine Domain and username used to map a network drive

Using Windows 7 Enterprise with SP1, but I'm hoping to get a generic answer that would apply to Windows XP/2003/2008/Vista/7. From a command prompt, I execute a net use command to map the Z: drive to a share on another computer, but I don't use my…
Reg Domaratzki
  • 895
  • 2
  • 7
  • 11
53
votes
2 answers

Why "net use * /delete" does not work but waits for confirmation in my PowerShell script?

I have a script where I want to disconnect from the mapped drives before I create a new PSDrive. Otherwise I get this error: New-PSDrive : Multiple connections to a server or shared resource by the same user , using more than one user name, are…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
40
votes
7 answers

How can I access a mapped network drive with System.IO.DirectoryInfo?

I need to create a directory on a mapped network drive. I am using a code: DirectoryInfo targetDirectory = new DirectoryInfo(path); if (targetDirectory != null) { targetDirectory.Create(); } If I specify the path like…
Leo B
33
votes
5 answers

Java WatchService not generating events while watching mapped drives

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…
Ramcis
  • 381
  • 1
  • 4
  • 5
12
votes
3 answers

Accessing virtual directory(mapped drive) via c#/asp.net webpage with IIS7

So i have a server A and server B. Server A: Windows Server 2008R2 Server B: Windows Server 2003 Web page is using framework 4.0, created with VS2013 Pro RC on server A my asp.net/c# webpage is running on IIS7 on server B i have a shared folder. Now…
Mana
  • 1,925
  • 6
  • 39
  • 55
9
votes
2 answers

Mapped network drives cannot be listed in C#

I am trying to list all local drives in my application, and DriveInfo.GetDrives give back the local drive letters, and I need the mapped drives too. Currently I have: C:, D:, and G: (HDD), E: and F: (CD), and S: and Z: (mapped network drives). (Yes,…
Zolka
  • 221
  • 1
  • 3
  • 8
8
votes
3 answers

Cannot access files on drive mapped network share from a Windows service

I have a network shared folder mapped to a drive letter, which is accessible from Windows Explorer, from the command prompt as well as from my WinForms application without problem. It is also accessible from my Windows service using a UNC…
Elan
  • 6,084
  • 12
  • 64
  • 84
8
votes
1 answer

VS2013 different to VS2010 and i cannot access network drive from windows application

I cannot work this one out! Create a VS2010 windows application that just does a FileInfo("Y:/test.txt") and when debugging the FileInfo works fine. Do exactly the same thing via VS2013 and it reports file not found. So there is some kind of trust…
7
votes
1 answer

FileSystemWatcher on mapped network drive

Are there any special considerations (other than permissions) that you should take into account when implementing a FSW to monitor a mapped network drive. Will the FSW throw an exception if the drive loses its connection? If not (or if I just…
Jess
  • 2,991
  • 3
  • 27
  • 40
7
votes
1 answer

Visual Studio 2010 Pro - Run as Administrator no network drives

When i run VS 2010 as Administrator then VS can't find my mapped network drive where my sourcecode is located. But i realy need VS to run as an administrator in order to attach to a process. Anyone got experience with this issue?
HerbalMart
  • 1,669
  • 3
  • 27
  • 50
7
votes
1 answer

IIS Express loads and unloads modules for each request

We have an ASP.NET project using IIS Express while debugging. After starting VS2013, then loading the solution, building the solution and starting the web application in debug mode, the output window lists a bunch of DLLs that get loaded and…
7
votes
6 answers

In PowerShell, how can I determine if the current drive is a networked drive or not?

I need to know, from within Powershell, if the current drive is a mapped drive or not. Unfortunately, Get-PSDrive is not working "as expected": PS:24 H:\temp >get-psdrive h Name Provider Root CurrentLocation ---- -------- …
JJarava
  • 552
  • 10
  • 18
1
2 3
11 12