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

Using batch file and WinSCP to download files from the FTP server to file server (shared folder)

I am using the following code to transfer files from my FTP server to my local machine which works fine. "C:\Program Files (x86)\WinSCP\WinSCP.com" /command ^ "open ftp://rnandipati:J13@Files8.cyberlynk.net/kgptel/" ^ "lcd…
qwerty
  • 887
  • 11
  • 33
1
vote
1 answer

Extracting .tar.gz using libarchive on UNC path?

I'm trying to use libarchive to extract .tar.gz file to current folder. Test machine if win7 64bit running under virtual box. It works fine if I do it in C:\ (.vdi disk), however it fails on E:\ (shared folder from host). Based on this Can't create…
graywolf
  • 7,092
  • 7
  • 53
  • 77
1
vote
0 answers

WebAPI impersonation to access UNC path

I want to access a UNC path from my NTLM-enabled WebAPI with the logged-in user's credentials. For that, I'm using the following code: Using DirectCast(RequestContext.Principal.Identity, System.Security.Principal.WindowsIdentity).Impersonate() …
André R.
  • 427
  • 7
  • 17
1
vote
1 answer

Can I create installer that copies files from a UNC path on the network?

Is it possible to create the Inno Setup script to copy files from a UNC path on the network rather than statically adding them to the setup file? If so, can it still be done if I need to authenticate to the path first? Is there a mechanism to…
kingtermite
  • 55
  • 2
  • 9
1
vote
0 answers

opening excel file from cmd UNC paths screws with saving dir

The Problem is an excel file on a network drive which is to be opened from a .cmd file in the same folder. As I'd rather not tamper with the registry on a machine at work, I used the pushd command to switch to the directory and open the file.…
karuit
  • 31
  • 3
1
vote
2 answers

Publishing a nuget package to a UNC share with a Nuget Publisher build def task

I have a VSTS build definition that creates a NuGet package of the component the build creates. When I try using the NuGet Publish task (available out of the box) in the build definition to publish to a UNC path, it succeeds but the .nupkg just…
Sean B
  • 11,189
  • 3
  • 27
  • 40
1
vote
2 answers

pushd not allowing UNC paths, cmd extensions are enabled

I've used the pushd "%~dp0" trick for years to run batch files from server locations without issue. It's not working anymore, and it's not because CMD extensions are unavailable or I've run out of drive letters (ref1,ref2). Any clue what's going…
matt wilkie
  • 17,268
  • 24
  • 80
  • 115
1
vote
0 answers

How to access network drive directly via UNC path from powershell?

I have been able to access UNC paths on a different domain in powershell with: net use \\machine.domain.int\c$\ /user:domain\user $password this allowed me to directly cd into \\machine.domain.int\c$ However I have now created a networked drive and…
RusinaRange
  • 341
  • 1
  • 4
  • 18
1
vote
1 answer

java.nio.file.Path error with VSS (Volume Shadow Copy) paths

Using VSS, I've created a volume snapshot and can successfully access files on it: C:\> type \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\Users\Eric\Desktop\test.txt test text 1/2 test text 2/2 When I try to access the same file from java using…
Eric
  • 11,392
  • 13
  • 57
  • 100
1
vote
2 answers

How to get Visual Studio to recognise a network drive mapping

I have the following Post-Build event defined in my project: if "$(ConfigurationName)"=="Release" ("$(ProjectDir)PostBuildRelease.bat" "$(TargetDir)") So when I build the project in release mode, the following .bat file is executed:…
Bassie
  • 9,529
  • 8
  • 68
  • 159
1
vote
2 answers

BizTalk Custom Pipeline Component - You have selected an invalid pipeline component assembly

I am creating a class library. On successful build of that class library I had placed that DLL to the pipeline component folder of BizTalk Server and added that DLL to the GAC folder. Now I am trying to refer that as custom pipeline component into…
Developer
  • 173
  • 2
  • 13
1
vote
0 answers

"Insufficient system resources exist to complete the requested service" Crawling with Apache Tika on a network folder

I am using a custom crawler that calls Apache Tika to extract text from different file formats up to 200M size in a Windows shared resource (using the file UNC). At some point after successfully crawling near 400k files, I start seeing this error…
gerosalesc
  • 2,983
  • 3
  • 27
  • 46
1
vote
1 answer

DNS redirection UNC path different domain

We are migrating our old files server. Let's say srv01.oldDomain.com is the old server (source) with the old domain and srv02.currentDomain.com is the new server (target) in the current domain. People can reach their documents by means of different…
Yann Greder
  • 71
  • 1
  • 6
1
vote
3 answers

IOException reading a large file from a UNC path into a byte array using .NET

I am using the following code to attempt to read a large file (280Mb) into a byte array from a UNC path public void ReadWholeArray(string fileName, byte[] data) { int offset = 0; int remaining = data.Length; …
Matt
  • 1,370
  • 2
  • 16
  • 40
1
vote
1 answer

Insert character into UNC string using Powershell replace

We've been migrating multiple file servers into a consolidated black box solution and have a reason to copy certain files from the original source servers back across to the new solution, as there have been some issue recalling those files from…
Geoff
  • 11
  • 2