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
1
vote
0 answers

How to easily access Windows file server paths on a Mac?

I am trying to easily convert Windows server paths (UNC) into Mac server paths (SMB). Currently I paste the link to a text editor and "find and replace" every character to an SMB format. I think the best option here is to run a mac automator script…
Halcykon
  • 35
  • 8
1
vote
1 answer

Get list of files programmatically of android device on Windows 10

Below is the image of how the android device automatically mounts on windows 10 (named: remdiz) Actual Device: Redmi Note 5 Pro 1: https://i.stack.imgur.com/uOnI4.png I am not able to get the list of files inside any given folder inside it because…
Azee77
  • 100
  • 2
  • 8
1
vote
1 answer

What is the difference between Delphi library routines IsUNCRooted and IsUNCPath?

The current documentation of both functions reads very similar to each another: System.IOUtils.TPath.IsUNCRooted System.IOUtils.TPath.IsUNCPath Both are static members of the same class, with one of them decorated inline, so I wouldn't think they…
ardnew
  • 2,028
  • 20
  • 29
1
vote
1 answer

"NetUseAdd" in C# software works on one pc, but not another (Error 1232)

We have a software that connects to a cloud-drive. This software was already running for 2 years without problems on 2 different servers. On both server is running the exact same version of the software and both connect to the same drive with the…
SinseiJ
  • 25
  • 4
1
vote
1 answer

get-itemPropertyValue doesn't bind Path when using \\?\UNC\ (long unc path) in start-job scriptblock

I'm trying to multithread this $var3 = Get-ItemPropertyValue $var2 -Name fullName,CreationTime,lastAccessTime,LastWriteTime,length; by replacing it with: $var3 = forEach($file in $var2) { start-job -name "bla" -scriptblock…
Daniel Kaupp
  • 165
  • 2
  • 12
1
vote
1 answer

How can you replace multiple UNC paths of mapped drives via registry using PowerShell?

Our servers team has implemented a DFS, but users across the company still have drives mapped using the server name(s) at various sites. I'd like to push out a PS script that updates a SINGLE registry value (per drive). My goal is to look through…
aceventura
  • 21
  • 3
1
vote
0 answers

WinAPI: How can I list shares connected by a UNC Path

Using a UNC path such as \\1.2.3.4\drive\dir\myfile.txt I can access files on a remote machine. I can make a connection using WNetAddConnection2 programatically or I can just type \\1.2.3.4\ in the explorer address bar, and then Windows will prompt…
RED SOFT ADAIR
  • 12,032
  • 10
  • 54
  • 92
1
vote
0 answers

Get FinalPath for any given UNC folder path (including NAS) and any per-user redirects

I need to figure out if a given (UNC) path actually points/ends/is the given path (directory). Example: "\?\UNC\machine1\shared1". GetFinalPathNameByHandle will result in "\?\UNC\machine1\shared1". However, if there's a symlink "sym" inside shared1…
1
vote
0 answers

Test-Path -isValid fails on UNC root share

I need to be able to test the validity of a path, regardless of actual presence. My function is used to validate a user provided path, which might be a local drive and might be a UNC path and might be a registry path. And the path could then be used…
Gordon
  • 6,257
  • 6
  • 36
  • 89
1
vote
3 answers

Powershell Copy-item fails on unc path with space and ampersand

I am trying to use the powershell Copy-Item command to copy a file to a UNC Path. Unfortunately, the UNC path on this production server has both spaces and an ampersand in the name. I've tried a bunch of things, but haven't had any luck yet. Could…
JiggidyJoe
  • 489
  • 2
  • 8
  • 21
1
vote
2 answers

Silverlight project build fails in VS2010 when project is on a mapped network drive

I am just learning Blend/Silverlight/VS2010/.net/etc. I have a simple project that resides on a network drive. When I tell VS2010 to rebuild the project, I get the following error message: ------ Rebuild All started: Project:…
Hex440bx
  • 657
  • 6
  • 16
1
vote
1 answer

How to run batch file from "sent to " folder on network drive without “UNC path are not supported” message?

First of, I know that there are a few similar questions on this site already. I have read them, but none solved my problem. Here is what I want to do. I want to place a small .bat script in my "send to" folder so I can execute it via the right click…
NorrinRadd
  • 545
  • 6
  • 21
1
vote
2 answers

Can I access a azure-storage-file from my app-service via unc-path?

I have an azure-app-service where I want to access files on the azure-storage. If I use the CloudStorageAccount it works well. But the problem is, that I have a native library loaded, which uses UNC-Paths to access its files. I found a way set…
1
vote
1 answer

I need to access a network path

I have a windows service and tried to map it using the pinvoke. The code works fine in a console application, but it has no effect in a windows service. According to this: "net use" command in a Windows Service I should drop the net use approach and…
Kasper Hansen
  • 6,307
  • 21
  • 70
  • 106
1
vote
1 answer

Convert Windows UNC path to QUrl for Mac

Background: I've got a database where paths to video files are stored as Windows UNC path strings, for example "\\11.22.33.44\path\movie.mp4". (The Windows format is a legacy thing and I can't fundamentally change how these are stored). I'm now…