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
8
votes
2 answers

Select-string escape character

I'm trying to search directory c:\bats\ for batch files containing the unc path \\server\public Command: Get-ChildItem -path c:\bats\ -recurse | Select-string -pattern "\\server\public" I receive an error related to the string…
rob
  • 81
  • 1
  • 1
  • 3
8
votes
1 answer

Strange Visual Studio TFS behavior when working on a Mac file share/unc path

I'm working on a Mac with Yosemite. Yesterday I installed Update 4 of Visual Studio 2013 and noticed a strange behavior when working with TFS 2013 (and TFS as SCM). My source files are mapped to a UNC path on my Mac as a local workspace. When I do…
Manuel Rauber
  • 1,583
  • 1
  • 17
  • 39
8
votes
3 answers

Accessing Windows disks directly with Java NIO

I am using a library that uses Java NIO in order to directly map files to memory, but I am having trouble reading disks directly. I can read the disks directly using FileInputStream with UNC, such as File disk = new…
timbo
  • 1,533
  • 1
  • 15
  • 26
8
votes
3 answers

Split-Path with Root UNC Directory

So I've got a UNC path like so: \\server\folder I want to get just the path to server, eg \\server. Split-Path "\\server\folder" -Parent returns "". Anything I try which deals with the root, fails. For example, Get-Item "\\server" fails too. How…
mamidon
  • 895
  • 1
  • 10
  • 25
8
votes
0 answers

Windows service cannot access UNC path

I have a windows service written in C# running on Windows Server 2012. The service is running as a domain user with permissions on the local machine and NTFS permissions to shared network resources on an Isilon SAN. I can access shared files and…
chris.keitel
  • 181
  • 1
  • 7
7
votes
0 answers

Specify CIFS vs NFS for UNC in Windows?

On Windows 2008 Server R2 (acting as a client) I have the Client from Windows Services for NFS installed and a server mounted as Y: with NFS. That server also supports CIFS. When I open a UNC path to the server with start/run it connects using…
kmarchand
  • 71
  • 5
7
votes
2 answers

PowerShell: Unable to write data to a UNC path that contains square brackets

This is the problem I'm having: # The following line works Add-Content -LiteralPath "$Env:USERPROFILE\Desktop\[Test].txt" -Value "This is a test" # The following line does not work and does not output an error message Add-Content -LiteralPath…
Rick
  • 225
  • 1
  • 3
  • 5
7
votes
2 answers

How can I use impersonation to manipulate files/directories on a remote machine with UNC?

I need to download files from a server to a shared drive directory, creating the directory if it doesn't exist. There are a few things making this more complicated: I do not have write access (nor does the account that will run the job in UAT/Prod)…
Devsman
  • 434
  • 4
  • 17
7
votes
2 answers

CMD does not support UNC paths as current directories

We have batch scripts that seem to run fine however I am editing one of them to include some new work and when manually running the script (by double-clicking from windows explorer) I get the above error message each time a pushd command in the…
Nelson
  • 93
  • 1
  • 2
  • 7
7
votes
2 answers

Run a .NET program from a mapped drive or shared folder

I have written a C# Windows Forms application to merge the files and folders from a remote folder on one machine ("source" folder is a mapped drive - "Z:\folder") with another remote folder on a different machine ("destination" folder is a UNC path…
Rick
  • 1,863
  • 2
  • 19
  • 46
7
votes
4 answers

List all shared folders from a network location

I want to list all the shared directories from a network server. To list directories from a shared network directory I used Directory.GetDirectories(@"\\server\share\") The problem is I want to list all folders on \\server. If I use the same…
CornelC
  • 4,974
  • 1
  • 21
  • 28
7
votes
2 answers

Windows 7 - no network - What do I need to locally fake UNC path for development/testing?

Situation: I'm on a stand-alone development computer running Windows 7. Not connected to any Windows Server. Would like to test a Window application's ability to use UNC paths. Will be transferred later to a Linux server (not at my location), hence…
ToolmakerSteve
  • 18,547
  • 14
  • 94
  • 196
7
votes
3 answers

IIS site on UNC share: is it problematic?

I am working with a legacy ASP Classic solution which is load balanced (via external hardware and has an IIS site the home directory of which is an UNC path. I've been told that the following issues with this setup currently exist: When using an…
bzlm
  • 9,626
  • 6
  • 65
  • 92
6
votes
1 answer

Why doesn't my program recognize mapped UNC paths?

I have some problems writing to a mapped network drive (P:) in Windows 7 from my Delphi program. When I try, for example, ForceDirectories('P:\test\folder'), I get an error (path not found). I have tried typing in the UNC path in the code…
MGH
  • 1,189
  • 1
  • 10
  • 18
6
votes
1 answer

How can I open a UNC path from Linux in Java?

Are there any libraries available that will allow me to read from and write to a Windows Fileshare given a UNC path from Java on Linux. It's trivial on a windows box itself, and I'm aware of smbclient approaches, but I'm looking to do it by dropping…
Allain Lalonde
  • 91,574
  • 70
  • 187
  • 238
1 2
3
39 40