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
3
votes
1 answer

How can I map a \\wsl$\ type unc path to a windows drive letter?

I'm using eclipse on windows to connect to files on a wsl, and I have run into what is apparently an eclipse bug which file names such as \wsl$\folder1\pom.xml get mangled. https://bugs.eclipse.org/bugs/show_bug.cgi?id=577938 A comment in the bug…
Gonen I
  • 5,576
  • 1
  • 29
  • 60
3
votes
3 answers

.Net DriveInfo() with UNC paths?

Good morning, is there a way to get a DriveInfo instance for UNC paths (e.g. "\fors343a.ww123.somedomain.net\folder\1\") because for example... var driveInfo = new System.IO.DriveInfo(drive); ... throws an ArgumentException ("Object must be a root…
Jörg Battermann
  • 4,044
  • 5
  • 42
  • 79
3
votes
0 answers

Is there a bug in node.js pathToFileURL()/fileURLToPath()?

I tried the following unit tests: test('nodejs URL pathToFileURL() works', () => { let dosPath = '\\\\?\\UNC\\diskstation\\home\\cpan-modules.txt' let theUrl = pathToFileURL(dosPath); let thePath = fileURLToPath(theUrl); }) ; And it…
fjardon
  • 7,921
  • 22
  • 31
3
votes
2 answers

batch file: how to check if %~dp0 is a UNC network path?

I have seen How to run batch file from network share without "UNC path are not supported" message? - and the pushd %~dp0 to mount the network path as a drive, and popd to unmount the drive, seems to work for me. I'd just like to make the batch…
sdbbs
  • 4,270
  • 5
  • 32
  • 87
3
votes
1 answer

Get UNC path from mapped drive-letter after impersonation

If I call function WNetGetUniversalName() to get UNC path from drive mapped in current session, the function succeeds. But... If I create a new logon sesssion by calling LogonUser() (The logon user is same as the process creator) Impersonate with…
Jatin Sanghvi
  • 1,928
  • 1
  • 22
  • 33
3
votes
1 answer

Java Watch Service cannot watch more than 50-60 folders defined as UNC Path in Hierarchy

I have been trying to watch folders through UNC. There are a lot of folders in the main folder. When I run the watch service it is registering all the folders with watch service. After all these folders are registered the watch service receives the…
UABajwah
  • 31
  • 3
3
votes
2 answers

Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object

I'm having this error when trying to attach package tidyselect and when trying to call tidyselect::any_function. The error happens in Rstudio or command line alike, in RStudio it is triggered as soon as I type: tidyselect:: , though ?tidyselect::…
moodymudskipper
  • 46,417
  • 11
  • 121
  • 167
3
votes
1 answer

UNC path to File URI

how to convert UNC path to File URI.. For my application user will give css UNC path like this in test box : \\egng4573\D$\CSS\Style.css how can i change it to : file:///D:/CSS/Style.css so that firefox and IE both can access css from the desired…
Maybe2013
  • 581
  • 1
  • 12
  • 21
3
votes
1 answer

Programmatically get the full path of a shared folder on another computer?

I know that you can get the path to a mapped drive (e.g. Find UNC path of a network drive?), but what if the only thing I have is just the path to the shared folder? For example, let's say I have a friend who is sharing the folder…
SaiyanGirl
  • 16,376
  • 11
  • 41
  • 57
3
votes
1 answer

Python 3: accessing windows share under Linux by UNC path

First, lets ensure that windows share is accesable: $ sudo mkdir /mnt/test Let's try mount, but it's fail: $ sudo mount -t cifs //192.168.0.10/work /mnt/test mount: wrong fs type, bad option, bad superblock on //192.168.0.10/work, missing…
swasher
  • 368
  • 4
  • 17
3
votes
2 answers

A unicode error with installing win_unc library

I am trying to install a win_unc library and I get the following error: File "unc_credentials.py", line 36 """ Syntax error: (unicode error) 'unicodescape' codec can't decode bytes in position 340-341: truncated \uXXXX escape and this is the…
Irina Fortiss
  • 95
  • 1
  • 2
  • 6
3
votes
3 answers

Java : How to access UNC location

same as title; how to access to UNC location in ShareFolder? URL uri = new URL("file:\\\\x.x.1.10\\myUNC"); File file = new File(uri); or URL uri = new URL("file://x.x.1.10/myUNC"); File file = new File(uri); also doesn't works.
Jeongsam Seo
  • 43
  • 1
  • 1
  • 7
3
votes
2 answers

How to copy efficiently UNC paths in the same remote machine

I'm working on an efficient solution to copy big files in the same remote machine, let's call it FILESERVER. Then, from another server (WEBSERVER) I want to issue copies of these files remotely, so I tried to copy/paste files in the same remote…
jorgonor
  • 1,679
  • 10
  • 16
3
votes
2 answers

Process.Start not working with UNC path to Filezilla

This code used to work below on the C Drive where it was installed. We moved it to a UNC path \share and now it doesnt seem to reload the config file. There are no errors, and Filezilla works fine as I can connect and transfer files over on this…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
3
votes
2 answers

Cannot open sharepoint UNC path unless already opened through Windows Explorer

I'm hoping somebody can shed light on this, because it has been driving me to distraction. I have a script which will save the reports it creates to a sharepoint document library via UNC path, if the path exists, otherwise it saves to the UNC path…
Graham Gold
  • 2,435
  • 2
  • 25
  • 34