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

Get file from FTP server and copy it to UNC directory

I am trying to copy a CSV file from an FTP server to a UNC file path. I had it working from FTP to a local path, but it would be better for my project to have it copy to a UNC path. This must all be achieved in batch and FTP commands. This is my…
Bytesized
  • 133
  • 1
  • 15
3
votes
2 answers

Sharing a folder programmatically and revoking it. (Delphi 7)

How does one programmatically create a UNC share from a known directory? How does one revoke it programmatically? I don't want the user to fiddle with the Share dialog. Additional info such as changing the share name, comment, user limit is also…
SoulBlade
  • 167
  • 1
  • 10
3
votes
5 answers

WNetAddConnection2 from a Windows Service

I'm trying to connect to a remote password protected shared folder from a Windows service, which runs as LocalSystem account. It seems that the LocalSystem account is unable to directly access password-protected network shares using…
Flavio
  • 31
  • 1
  • 1
  • 2
3
votes
1 answer

Bug converting std::tr2::sys::path to std::string?

I am using the Visual Studio 2013 TR2 filesystem library. I am seeing a bug when converting a UNC path to a string: #include "StdAfx.h" #include #include…
Armbie
  • 187
  • 2
  • 12
3
votes
3 answers

Mapped Network Drives

I have mapped a network drive to a computer in my home network. Now I am trying to access it via PHP - I did this quick test: echo opendir('Z:\\'); This gives me: Warning: opendir(Z:\) [function.opendir]: failed to open dir: No error in…
Abs
  • 56,052
  • 101
  • 275
  • 409
3
votes
0 answers

Long Paths with Plastic SCM and node.js project

I am using Plastic SCM v4.x (on windows 7/8) and have a projects that uses node.js. The modules and module dependencies in the project create path lengths that are > 259 characters. Windows explorer has a problem with this when I try to access the…
BuckWheat
  • 31
  • 1
3
votes
1 answer

Why does Fake / F# globbing not work on UNC paths

I have a small test script reproducing the problem // include Fake lib #r @"tools\FAKE\tools\FakeLib.dll" open Fake let root = @"\\wgprintsrv\FTP\FTPSoftware\FTPSW\weincad\release" let glob = root @@ "**\*.dll" trace glob !! glob |> Seq.iter…
bradgonesurfing
  • 30,949
  • 17
  • 114
  • 217
3
votes
0 answers

Coldfusion File access using UNC path - access denied

Result (in CF error object): access denied (java.io.FilePermission \uncPath\test read) null I found this article:…
user1178394
  • 83
  • 1
  • 8
3
votes
1 answer

Can I use New-Symlink on UNC paths?

I am trying to create a symlink to a file on Windows using PowerShell. I am using the New-Symlink cmdlet from the PowerShell Community Extensions. After struggling to figure out the syntax of New-Symlink I was able to get it to work correctly on my…
Kris Harper
  • 5,672
  • 8
  • 51
  • 96
3
votes
3 answers

Check if server path is available as file share in C#

I want to quickly check if a file share is available in C#, but without knowing anything about the directories that might be on the network share. I have found these posts 1 2 3 that show how to check if a network directory is available, but they…
deadlydog
  • 22,611
  • 14
  • 112
  • 118
3
votes
3 answers

How to access file with UNC path from asp.net

When I access file whith UNC file path from asp.net, I found the following problem. Logon failure: unknown user name or bad password. Pls help me.
user191044
  • 31
  • 1
  • 3
3
votes
1 answer

Java Web Start: How to write files to windows UNC Path?

I have an Java application for copying large amounts of data from users' workstations to a server. The java.io.File class is supposed to work with UNC paths very well and in fact it does but only when I run the app in standard execution model. When…
Honza
  • 4,349
  • 2
  • 24
  • 40
3
votes
1 answer

Obtaining UNC path from mapped network drive

I am looking for a method for obtaining the 'real' UNC path from a mapped network drive - a common question here but not using the language or method that I desire. I would like users to be able to select a file using an HTML form but not upload it…
user1832464
3
votes
1 answer

How can I programmatically convert a DFS path to UNC using VBS?

I have several scripts that must use UNC paths - not DFS - and would like to be able to determine the UNC path programmatically from the DFS path. For example, we have something like: \\domain\fs\Home\HomeFolder\MyUserID and I would like to get…
Lizz
  • 1,442
  • 5
  • 25
  • 51
3
votes
4 answers

Trying to get a Windows Service to run an executable on a shared drive

I have c# that will run in a windows service. I'm trying to use the Process and ProcessStartInfo classes to run an executable. If the executable is on the local drive, no problem. However, I need to run an executable on a shared drive. I've…
Brett McCann
  • 2,469
  • 2
  • 27
  • 44