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 to check if UNC path is DFS path?

Suppose I've got three UNC paths: \\it\may\be\samba\on\linux.txt \\maybe\its\on\windows\fileserver.txt \\and\that\one\is\dfs.txt How can I check (in c#) which one is a dfs mapping and which one isn't?
takrl
  • 6,356
  • 3
  • 60
  • 69
3
votes
2 answers

Accessing files across the windows network with near MAX_PATH length

I'm using C++ and accessing a UNC path across the network. This path is slightly greater than MAX_PATH. So I cannot obtain a file handle. But if I run the program on the computer in question, the path is not greater than MAX_PATH. So I can get a…
Brian R. Bondy
  • 339,232
  • 124
  • 596
  • 636
3
votes
3 answers

Powershell UNC Path not supported exception

Well I've struggled long enough with this one. I have a project to compare two folders, one on each of two servers. We are comparing files on the source server with those on the target server and will create a list of the files from the source…
Bob Lyman
  • 43
  • 2
  • 5
3
votes
1 answer

How to access the disks mapped through RDP from a service?

RDP has this fantastic ability to let export disks from remote user's workstation to the RDP server. As far as I can tell, it is not just a windows explorer trick, but all kinds of programs can use the shortcuts "X:", "Y:", "Z:" etc... This stack…
Konrads
  • 2,206
  • 2
  • 30
  • 45
2
votes
3 answers

Best way to access a UNC path in C#

We are building an application that will be storing a lot of images. We have a virtualized environment at GoGrid.com and we were hoping to utilize their cloud storage. Not sure exactly how to word this, but if we (in our code) specify the unc path…
dpluscc
  • 590
  • 1
  • 8
  • 18
2
votes
2 answers

Convert path to UNC path

I have tried this code to convert my path to UNC path: [DllImport("mpr.dll", CharSet = CharSet.Unicode)] [return:MarshalAs(UnmanagedType.U4)] static extern int WNetGetUniversalName( string lpLocalPath, [MarshalAs(UnmanagedType.U4)] int…
M_Mogharrabi
  • 1,369
  • 5
  • 29
  • 57
2
votes
3 answers

Preventing UNC Share error at build time

At work we have a bunch of sites hosted on our development server. The folder containing all these sites is mapped as a network drive. In VisualStudio I open the root of the site as a WebSite and when I build the site I alwys get this error. Error…
Greg B
  • 14,597
  • 18
  • 87
  • 141
2
votes
0 answers

IOS - how to write file to network share?

i'm trying to create and write a file to a network share (smb). i have some data stored in an NSData object and need to write the content to a network share at \\media\file.xml any help or advise would be greatly appreciated! thanks!
rdediana
  • 223
  • 1
  • 2
  • 6
2
votes
4 answers

IIS 6 with wildcard mapping and UNC virtual directory problem

On our production servers (win 2003 with IIS6 and load balanced with an F5 BIGIP), we have a problem when introducing wildcardmapping on IIS6. We use .net Framework 3.5 SP1. The issue manifests itself as by the server only sometimes serving the…
El Che
  • 1,301
  • 3
  • 15
  • 33
2
votes
2 answers

How to Open SQLite3 on Network Share in C# C-Sharp

I'm having trouble with a very simple C# program that opens two SQLite files and reads the contents. Program works fine (button1) when database file is on local machine, but I cannot get it to work (button2) when the file is on another LAN PC (both…
SqueezeOJ
  • 441
  • 7
  • 17
2
votes
1 answer

How can I impersonate logged on user and get access to unc folders?

I'm having trouble impersonating logged on user and then access unc files. I have tried using this sample code: using System.Security.Principal; ... // Obtain the authenticated user's Identity WindowsIdentity winId =…
Pär Fahlén
  • 21
  • 1
  • 2
2
votes
0 answers

Webpack 5 and support for UNC paths as output?

If I set the output.path property of my webpack config to a UNC path like \\COMPUTER-NAME\some-share I get the following error since webpack 5 (It used to work in webpack 4): C:\Temp\dbp\node_modules\webpack\lib\util\fs.js:121 throw…
Magnus O.
  • 468
  • 5
  • 17
2
votes
0 answers

Oracle 18c external table importing csv file from UNC path

Preface This script has worked previously when importing a csv file into an external table when using a local path for the created directory (with a local drive like F:\stats) instead of a UNC path (\\station-1\...) Script CREATE OR REPLACE…
Frazic
  • 77
  • 9
2
votes
2 answers

Accessing UNC file share with credentials in Perl

I am trying to get a Perl scripts to access a file over UNC path using specified credentials. Is this possible? If not with Perl, what else could I use? Thanks -Jesse
jomille
  • 405
  • 12
  • 24
2
votes
1 answer

How to access windows mounted drive with Java?

I have a WD My Cloud at home. I can access it with my laptop from the file explorer just by typing Z:\path\to\image.jpg. I'm writing a Java program that would read the image content located on this little cloud. Here is my code: Path p…
Stephan
  • 41,764
  • 65
  • 238
  • 329