Questions tagged [unc]

A UNC path unambiguously specifies the location of a volume, directory, file or other local or remote resource on Windows.

On Windows, a UNC path specifies the location of a local or remote resource, including files, directories, volumes and more. UNC path generalize traditional file paths. A UNC path has the form \\Hostname\Folder\Resource. A UNCW path (long UNC) has the form \\?\UNC\Hostname\Folder\Resource.

593 questions
2
votes
1 answer

How do I give permission to the IIS process to read a network location?

I'm attempting to read the size of a backup file on a network server from a web page to determine if there's still enough space to store several days of backups. The following code works on a local directory: var directoryInfo = new DirectoryInfo(…
SqlSamurai
  • 46
  • 4
2
votes
1 answer

Network storage (SMB/CIFS) in Windows Docker

I am trying to map an SMB network storage to Docker, in a development environment, to make it available to containers, in the same way as a shared local drive. This means, for the entire Docker VM, not individual containers. Another application…
Erik Hart
  • 1,114
  • 1
  • 13
  • 28
2
votes
1 answer

Is there a datatype to store a UNC path?

I'm searching for a datatype to store UNC paths in. I already tried using Uri but I always get an UriFormatException telling me Invalid URI: The hostname could not be parsed. The UNC path I'm using is \\.\Dap0 which represents a Data Acquisition…
Pete Hilde
  • 659
  • 1
  • 10
  • 24
2
votes
0 answers

Inconsistent result for Directory.Exists() on network path

I sometimes get false negatives when I check if a directory on a network path exists. When I check if the folder exists the method returns 'true' most of the time. Sometimes it switches to 'false' and reports 'false' for every call for about 5…
renklus
  • 776
  • 6
  • 17
2
votes
1 answer

Python 3.6.3 urlopen removing server name from URI for html file stored on remote server

I need to parse hundreds of HTML files that are archived on a server. The files are accessed via UNC, and then I use pathlib's as_uri() method to convert the UNC path to as URI. Full UNC path for example below:…
2
votes
1 answer

Running batch file from network share (vmware shared folder) in cygwin

I'm having some problems with cygwin and a mapped network drive. My setup is kind of convoluted to deal with some limitations with our corporate VPN. I'm running a Windows 10 VM under VMware Fusion with a shared folder from my Mac host which is…
2
votes
1 answer

access UNC drive/remote network drive in c++

I'm trying to access a network drive (\servername or \ipadress). The idea is that the drive is accessed only through the application and the login on the network drive is supposed to be used only by the application. So far i have found only the…
scigor
  • 1,603
  • 5
  • 24
  • 38
2
votes
0 answers

UNC symlink on a vm box return as it's not a directory in java

i have a code that check if directory file is a directory and it's working very well on Host Machine Win/Lin but problem is on any VM running on Virtual Box or VMWare Player. The code block bellow returns false in Guest OS and true on HOST OS which…
Emrah Mehmedov
  • 1,492
  • 13
  • 28
2
votes
2 answers

java file relativize method performance

i have a code that iterates over 100 000 files and get their relative path to some root directory and code is working but slow compared to another solution which is ugly (it's weird code but it's faster). The original code is here: File file, URI…
Emrah Mehmedov
  • 1,492
  • 13
  • 28
2
votes
2 answers

Accessing a shared folder over a network in adobe air

I'm trying to write to a shared folder on a windows network in AIR using the File class. I don't understand how to format the path to the shared folder. I get one of who errors with everything I've tried: "The specified folder does not exist" and…
Tyler
  • 21
  • 3
2
votes
1 answer

Convert mapped or UNC path to http url

I have an issue where pdf files don't open on edge when they come from a WebDAV address. I have noticed however that if I hit the file directly using the url for the file the pdf opens correctly as required. I was wondering if there is a way to…
user3284707
  • 3,033
  • 3
  • 35
  • 69
2
votes
1 answer

How not to escape an ampersand with python subprocess

I'd like to execute with subprocess.Popen() this command containing an ampersand to be interpreted as a batch concatenation operator: COMMAND="c:\p\a.exe & python run.py" subprocess.Popen(COMMAND,cwd=wd,shell=False)` The ampersand & however is…
Lorenzo Belli
  • 1,767
  • 4
  • 25
  • 46
2
votes
0 answers

Run Powershell script file located on a UNC path with parameters

There is a PowerShell script that need to be run from a UNC path. i.e. \\myserver\folder\a.ps1. The script takes a parameter. The first few lines of the script are as below param( [Parameter(Mandatory)] [ValidateSet('DEV','TEST','STAGING')] …
yonaire
  • 21
  • 1
  • 2
2
votes
0 answers

Rscript and UNC paths

I have an R script that I would like to run from the command line using Rscript.exe in Windows. The script runs fine if I open it in RStudio but when I run it through Rscript in the command line it fails because I have UNC paths in my script. For…
rjss
  • 935
  • 10
  • 23
2
votes
2 answers

IIS 7.5 - Virtual directory mapped to Azure File Share - Cannot read configuration file

As the title suggests I am receiving an error "Cannot read configuration file" when attempting to read a JPG file from an Azure File share mounted on a VM (from within Azure network) through a virtual directory from within IIS 7.5 This points to a…
John Mason
  • 81
  • 1
  • 6