Questions tagged [mapped-drive]

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

mapped-drive
Filter by
Sorted by
Tagged with
241 votes
13 answers
454k views

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 ...
VoidPointer's user avatar
  • 17.7k
148 votes
7 answers
497k views

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 ...
Doug Hauf's user avatar
  • 3,095
33 votes
5 answers
27k views

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 ...
Ramcis's user avatar
  • 381
53 votes
2 answers
238k views

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 ...
pencilCake's user avatar
  • 52.4k
40 votes
7 answers
61k views

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 ...
user avatar
8 votes
3 answers
17k views

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 ...
Elan's user avatar
  • 6,226
3 votes
3 answers
18k views

Mapped Network Drives

I have mapped a network drive to a computer in my home network. Now I am trying to access it via PHP - I did this quick test: echo opendir('Z:\\'); This gives me: Warning: opendir(Z:\) [function....
Abs's user avatar
  • 57k
9 votes
2 answers
12k views

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: (...
Zolka's user avatar
  • 221
7 votes
6 answers
8k views

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 ...
JJarava's user avatar
  • 570
2 votes
3 answers
28k views

Mapping a network drive and checking for its existence in VBScript

I need to map a network drive into a network path using VBScript. The network path is read directly from input. How should I map the network drive and how to check whether the entered network path ...
Maxim Terk's user avatar
7 votes
1 answer
4k views

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 ...
Simon Senécal's user avatar
2 votes
2 answers
1k views

CAS not working for VS2010 mapped drive

I have a project using subsonic that I developed in Visual Studio 2008 on C: drive. No problem there. I've just upgraded to Visual Studio 2010 (and as my computer coincidentally died, I'm now running ...
Ben McIntyre's user avatar
  • 1,916
116 votes
13 answers
291k views

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

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 ...
raphael75's user avatar
  • 3,120
73 votes
4 answers
140k views

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 ...
Reg Domaratzki's user avatar
2 votes
4 answers
4k views

In PowerShell, how can I determine the root of a drive (supposing it's a networked drive)

In PowerShell, even if it's possible to know if a drive is a network drive: see In PowerShell, how can I determine if the current drive is a networked drive or not? When I try to get the "root" of ...
JJarava's user avatar
  • 570
2 votes
3 answers
7k views

Accessing mapped drives when impersonating in ASP.NET

Short version: Is it possible or not to use impersonation in ASP.NET to access mapped drives? Long Version: I'm currently using impersonation in ASP.NET to gain access to network files. This is ...
adamjcooper's user avatar
  • 1,141
1 vote
2 answers
6k views

vb.net how to check if a network drive is mapped persistently

I use the following code to layout network drives on a system. I want to add a third column for persistence but in vb.net I do not know how to check if a drive has a persistent map or not. Any ...
MaQleod's user avatar
  • 1,009
1 vote
2 answers
14k views

How can I find the IP address of a mapped network drive in C++?

I have a list of possible paths to use for a default input data directory (X:\Data; Y:\Data; Z:\Data). All of the possible paths are mapped network drives. I can check this using GetDriveType(pathStr) ...
Ben's user avatar
  • 1,013
1 vote
1 answer
1k views

Mapping network drive using WNetAddConnection2 from "Run As Administrator" process does not work

I have an application which calls WNetAddConnection2 to map a network drive. This works perfectly unless I run the application as Administrator (right click - Run As Administrator) in which case the ...
Darren's user avatar
  • 4,468
1 vote
3 answers
7k views

Service not able to access a mapped drive

I have read in many forums that mapped drives are not accessible from a service as no user is logged on. Question 1) I tried making my service as a log on - as some account and i had my network drive ...
Rohit's user avatar
  • 11
0 votes
0 answers
56 views

How would I provide access to my Windows V:\ drive in a docker-compose.yml file?

Here's my docker-compose.yml file: version: "3.1" networks: lan_access: driver: bridge services: nodejs: image: node:18 environment: - VS_ALLOW_ADMIN=true - ...
kshetline's user avatar
  • 13.2k
0 votes
2 answers
1k views

Get mapped network drives labels

Is there a way to get mapped network drives labels? I know it's possible to get multiple properties through the Get-Object Win32_MappedLogicalDisk But none of them are labels (please do not ...
Nawad-sama's user avatar
0 votes
1 answer
2k views

Process.Start and "The system cannot find the path specified"

I am trying to run a console application from a mapped drive (T:\ is a mapped drive for a shared network folder) and get the error: The system cannot find the path specified. Why do I get this ...
Tomas's user avatar
  • 17.8k
0 votes
6 answers
11k views

C# - Map Network drive from Web Service

We are working on a web service that has to run a 3rd party process that interacts with a mapped network drive. So we have to map this drive programmatically from the web service. I have already ...
jonathanpeppers's user avatar
0 votes
1 answer
5k views

Using PHP's fopen in windows on a network drive

I have the following code: $file_name = "1234"; $filename = "L:\\videoette_converter\\batch_files\\".$file_name.'.bat'; if (!$handle = fopen($filename, 'a')) { echo "Cannot open file ($filename)"...
rickyduck's user avatar
  • 4,058
0 votes
0 answers
1k views

Use mapped drive or shared folder with IIS Express

I'm trying to setup a dev environment for an asp.net (umbraco) project using IIS Express on a mac. I have a VM with windows installed with the dev tools. My goal is to only use the VM as a compiler ...
Isak dl's user avatar
  • 527
0 votes
1 answer
3k views

Full path of the file from the remote server

I am working with files and I don't really understand how to make it work. I have a web application (c#) that is located on the server and users use this application to upload some information from ...
MarinaS's user avatar
  • 13
0 votes
1 answer
4k views

Application Cannot Access Mapped Drive

When the application is executed with run as administrator it fails to find files on a mapped network drive using FindFirstFile. If the executable is run without run as administrator is works. The ...
Fro's user avatar
  • 3