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

Does NetBIOS do any caching?

If I read a file from a UNC network share does Windows cache parts of that file? For example: If I read the whole file byte for byte, will each read call result in a request over the network, or does Windows read larger blocks internally, and serve…
Maestro
  • 9,046
  • 15
  • 83
  • 116
5
votes
1 answer

Delphi - Comparing two pathnames when one is UNC and one is drive letter-specified

I have a situation where a user can specify two separate pathnames, and I need to check whether one pathname is "inside" the other one. I can do this if both pathnames are UNC, or both are drive-letter-based, but what if they are mixed? Can you…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
4
votes
5 answers

Does 'use lib' work for UNC paths?

My hosted scripts have been moved and no longer work. The specified CGI application misbehaved by not returning a complete set of HTTP headers. I notice that someone at my host company has modified my scripts so that where I used to have use…
Ed Guiness
  • 34,602
  • 16
  • 110
  • 145
4
votes
4 answers

How to retrieve the UNC path instead of mapped drive path from JFileChooser

Just wondering if there is a way to return back the UNC path from a file chosen with JFileChooser. The file that I would be selecting would reside on a mapped drive that has a UNC path. Right now, I can only seem to pull back the drive letter of a…
tasoocoo
  • 41
  • 1
  • 3
4
votes
1 answer

Create folder in a mapped network drive using Java

I'm trying to create a folder to a mapped network drive Z: using Java Unfortunately the file is not getting created. This is what I'm doing: File file = new File("Z:/file1"); file.mkdir(); This code works when not using mapped network drive. This…
Marquinio
  • 4,601
  • 13
  • 45
  • 68
4
votes
2 answers

find specific folder in any mapped drive and report its full UNC path

I was wondering if it was possible using a batch file to find a specific folder in any mapped drive of a PC and have it report the folders full UNC path. Lets say a PC has drives mapped of N:\ & S:\ (or any usual network drive letter for that…
Tika9o9
  • 405
  • 4
  • 22
4
votes
0 answers

How do I [JSON.parse] a unc path?

I'm trying to get a filename from the server to my client and the slashes are driving me insane. If I have a fully qualified file path that is \\machine\share\inga.baz and I want this to be available on a JSON object on the client 1) what format…
K. Alan Bates
  • 3,104
  • 5
  • 30
  • 54
4
votes
3 answers

Are Extended-Length Paths safe to use?

I just stumbled on this article on MSDN that says a path can be 259 characters + NUL termination, but if you prefix it with "\\?\" WinAPI allows you to use the maximum total path length of 32,767 characters. Eager to see it working I tried using…
Camilo Martin
  • 37,236
  • 20
  • 111
  • 154
4
votes
2 answers

Get files using UNC Path

I'm trying to retrieve the list of files of one directory with the following code: string[] files = System.IO.Directory.GetFiles(source); If i try to retrieve them from a local directory, let's say C:\SomeFolder\ The string array is created…
Andre Roque
  • 503
  • 1
  • 9
  • 31
4
votes
1 answer

get disk_space with credentials

Well, what I am trying to do is, to get space information of disks in a LAN. I stored the UNC Paths in a XML-File and loop through it. In PHP I do: $filename = 'C:/...../config/config.xml'; echo '
'; if…
Murat Yazi
  • 85
  • 1
  • 8
4
votes
1 answer

Perl File::Copy::Recursive fcopy doesn't create directories on UNC Paths

When i use fcopy to copy files from an UNC Path to another, it doesn't work if the target directory doesn't exist. But it does work perfectly on local path, (resulting in creating that directory) use File::Copy::Recursive qw(fcopy rcopy dircopy…
Lisa
  • 111
  • 1
  • 6
4
votes
3 answers

How to read files from a UNC-specified directory in R?

Is it possible to read files from a UNC-specified directory in R? I'd like to do it without using any packages beyond the base installation.
AnjaM
  • 2,941
  • 8
  • 39
  • 62
4
votes
1 answer

PowerShell operation on UNC hangs too long

$to="\\SERVER\Share\Folder" if(!(test-path $to)) { ... } If the server is offline (resolved name but no pings), the call from test-path never returns (in my narrow minded understanding of script time). It simply takes too long to fail.…
Robert Cutajar
  • 3,181
  • 1
  • 30
  • 42
4
votes
1 answer

UNC share directory does not exist

I have a C# process that needs to read a file existing in a share directory on a remote server. The below code results in "Share does not exist." being written to the console. string fileName = "someFile.ars"; string fileLocation =…
Brian
  • 432
  • 1
  • 5
  • 12
3
votes
1 answer

ClickOnce UNC command line

I see a lot sample but i don't find the something good for my problem. This problem is : I have a program made in c#. I use the clickonce UNC system. With the shortcut on the desktop, there is no problem. But I want for sepecific users, add…
LittleJC
  • 133
  • 1
  • 5