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

Batch file read INI file from UNC path

So, I've been working on a batch file to collect specific system information, I've run into a road block with opening an INI file that's on the network installation. So obtaining the path is: for /f "tokens=2*" %%a in ('REG Query…
Pyrometheous
  • 65
  • 2
  • 14
0
votes
2 answers

Move a file from a SharePoint library to a UNC path

I have a number of files in a document library in SharePoint and the URL paths to those files. I want to be able to move the files from SharePoint to a UNC path location but File.Exists() and File.Move() doesn't work with URL's.
Matt
  • 358
  • 3
  • 9
  • 23
0
votes
3 answers

Python hashlib MD5 digest of any UNC file always yields same hash

The below code shows that three files which are on a UNC share hosted on another machine have the same hash. It also shows that local files have different hashes. Why would this be? I feel that there is some UNC consideration that I don't know…
Shaun
  • 445
  • 4
  • 15
0
votes
1 answer

Citrix .net app with a directory name invalid

I have a .net application in c# running as an app from Citrix, and has an important function where it's supposed to write a text file to a specified UNC path on the network (ie. \COLL-INT\req\ ). This works as desired from a desktop, but when…
jfalberg
  • 141
  • 4
  • 16
0
votes
2 answers

How does one detect the action of adding/removing of a UNC share with Delphi? (Prev D7)

How does one detect the action of adding/removing a UNC share? I basically just need to know if a share has been added/removed not details about the share itself. A working example would be greatly appreciated. Thanks SB
SoulBlade
  • 167
  • 1
  • 10
0
votes
1 answer

VBA Shell command - how to format

Can anyone tell me what I need to do to format a VBA shell command to launch MS Access and preload a network based database. I have tried this with the normal windows path and using a UNC i.e Shell "msaccess.exe…
Andrew Seabrook
  • 397
  • 2
  • 17
0
votes
0 answers

File existing test after network lost

I found a problem in different c++ function/way to try if a file exist. Scenario : A timer test if a file exist over a UNC path every x seconds. It works fine. I lost the network. Program hangs during a while... Network is reconnected and now every…
Maypeur
  • 387
  • 4
  • 18
0
votes
0 answers

Power Shell - Copy-Item UNC Path, Cannot Find Path... Does not Exist

I am having an issues with copying an item to a remote computer. I am using credentials for a domain admin to push remote installs. I am able to run this file locally however trying to push MSI file from a remote location it errors out. So i wanted…
0
votes
1 answer

How to pass UNC path from server to client

I have a problem when send a UNC path from server to client. part of my code from server if (data == "file") { // Process the data sent by the client. data =…
Areph_Ucil
  • 3
  • 1
  • 9
0
votes
1 answer

Open a file:// protocol with UNC paths in HTML page

I'm trying to open a file located on a networkshare by giving the anchor tag path = file://///servername/folder/file.docx This works in IE8 and i'm able to open the file in word, however in Firefox nothing happens. I believe it's due to some…
ace
  • 2,141
  • 7
  • 29
  • 39
0
votes
1 answer

How to get file's size on UNC path without pushd?

I'm helping a bud fix an application that has recently been changed over to using a UNC path. Before he could use a bat file to run @echo off echo %~z1 to get a file's size. Now the bat file won't work because CMD does not support UNC paths as…
mario
  • 1,503
  • 4
  • 22
  • 42
0
votes
2 answers

File.OpenRead() throws UnauthorizedAccessException when a directory with same path exists

When invoking File.OpenRead() on a file on a network share where a folder with the same name (but different casing) exists, UnauthorizedAccessException. This can happen on Linux shares where casing matters. Example: * P: is mapped to…
larsmoa
  • 12,604
  • 8
  • 62
  • 85
0
votes
1 answer

managed way of accessing UNC path with authenticaton

Using .net >= 4, is there a way to access UNC path with authentication (without using Win32 API)? Basically for a given folder path, i want to get its directory listing and load file content. I found a 6 year old solution with Win32 API Accessing a…
surya
  • 1,351
  • 1
  • 13
  • 29
0
votes
1 answer

How I can use a Powershell Script for copy data from position A to position B?

I want to use a Powershell script for copy a folder recursive to a other position. This must the Powershell todo: copy file and folders from position A to position B UNC PAth must have (for example \net.local\Files\EDV) On position B must all empty…
Tarasov
  • 3,625
  • 19
  • 68
  • 128
0
votes
1 answer

How I can copy Data recursive from position A to position B with Powershell?

i want to create a powershell script that can copy data from position a to position b recursive. this must do it with UNC-Paths. On position b must all empty Orders delete. I don't know how I can start :/
Tarasov
  • 3,625
  • 19
  • 68
  • 128