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

XSLT translate backslash to double backslash

I need to transform this value: F:\DEMO\TEST\HELLO.pm4 to this: F:\\DEMO\\TEST\\HELLO.pm4 I have tried a lot of thing, translate, concat, substring and replace but I didn't succeeded. Here's…
Brice
  • 67
  • 2
  • 13
1
vote
0 answers

UNC Path With Python Subprocess_checkCall

I have a python program which in turn calls an R script for doing some calculations. This worked great till I switched over to UNC. I am on Windows and I tried all that has been suggested on StackOverflow but I still keep getting an error saying…
Saugat Mukherjee
  • 778
  • 8
  • 32
1
vote
2 answers

rename a file in php on a windows file server (unc path)

In PHP I want to rename (move/copy) a file on a windows file server: "\myserver\folder1\folder2\myfile.pdf" to "\myserver\folder1\folder2\OLD\myfile.pdf" (all folders already exist and destination file does not exist) I tried…
Scott Szretter
  • 3,938
  • 11
  • 57
  • 76
1
vote
1 answer

Convert windows path to UNC in Ruby

I'd like to convert the following PATH into a UNC path in Ruby. C:/Users/bla/bla2/asdf-ut-script.js
wmitchell
  • 5,665
  • 10
  • 37
  • 62
1
vote
0 answers

Windows Service cannot access local share via UNC path only at boot time

My Windows Service is trying to access a local share via its UNC path on its startup. It has full permissions and path exists, I can tell that since when starting my service long after boot, everything works. However, on boot time I'm getting…
Mugen
  • 8,301
  • 10
  • 62
  • 140
1
vote
2 answers

How to provide unique credentials for Set-Content calls

I have a powershell script that simply updates a file on a couple different webservers. Each of these web servers have different local credentials that I need to provide in order to access the file in question. How can I update my script to allow…
Brian David Berman
  • 7,514
  • 26
  • 77
  • 144
1
vote
2 answers

Powershell - how to sort UNC paths by ping response time

I'm trying to make a script that would given a list of UNC shares order them by their ping response time. I've managed to come up with something that feels quite like a hack and I'm wondering if anyone has any better idea how to do it purely in…
Newanja
  • 651
  • 1
  • 5
  • 8
1
vote
1 answer

How to set FileDialog's folder from a UNC path in QML?

I want to store the last used folder in a file dialog in qml (using Qt version 5.6). The way I do it is through QSettings that has a url property lastUsedFolder as such: ///////////// /// myApp.qml ///////////// import QtQuick 2.3 import…
tomj
  • 1,089
  • 7
  • 17
1
vote
0 answers

ASP.NET ConfigurationErrorsException when serving images via UNC on IIS6

I have a virtual directory in my web app which connects to a Samba share via UNC. I can browse the files via Windows Explorer without issue, but my web app throws a yellow screen with the following message: Description: An error occurred during …
Mark Richman
  • 28,948
  • 25
  • 99
  • 159
1
vote
1 answer

Intermittent 404 errors on local .NET sites using UNC Paths as root

I'm running into intermittent 404 errors on local .NET websites configured in IIS 7.5 to use a UNC path as their root folder. The site will work for awhile, and then I'll start getting 404 errors that can only be (temporarily) resolved by rebooting…
DanO
  • 911
  • 1
  • 8
  • 16
1
vote
0 answers

How to get all files present from UNC path java?

Am try to get all files present in UNC path using apache commons-vfs2 library. But am not find way to list files present in UNC path with valid credentials.And then do manipulations in all files. I tried following code for access file present in…
Mister X
  • 3,406
  • 3
  • 31
  • 72
1
vote
1 answer

Is there any difference in performance between accessing a file through local path or to UNC shared path

I have a few template files that are hosted in many places, the main reason is to have for each module the corresponding template locally accessible. Later, I realise that those files were used through the UNC shared path for each box. My question…
Miguel
  • 3,786
  • 2
  • 19
  • 32
1
vote
0 answers

How do I open a UNC path from my PHP file to acess another workstation's C: drive from my computer on the same network?

I am currently improving a intranet site that runs on PHP. In it I have a table of UNC paths that are all on the same network. eg: \mypc\c$ I have this page coded so that these UNC paths are hyperlinked so it redirects to another PHP file(Test.php).…
Athul P
  • 11
  • 4
1
vote
0 answers

PowerShell - Trouble copying items remotely with invoke-command and copy-item

I have hundreds of computers on domain I am responsible for and I want to copy a file from a file server to their hard drives locally. If I script this to initiate the copy from my (separate) computer it works just fine via something…
Mr Roman
  • 17
  • 1
  • 5
1
vote
0 answers

UNC Path within a programs command line batch file

I am using a great little program text2folders and I have been able to make it run as a right click context menu in windows 10. I have it working perfect for drives with drive letters but it is failing when I using it on UNC path shares. I know I…
kieran
  • 11
  • 2