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

Write permissions on a folder or UNC path in c#

Any way to check if write permissions are available on a given path that could be either a local folder (c:\temp) or a UNC (\server\share)? I can't use try/catch because I might have write permissions but not delete so I wouldn't be able to delete…
Bob Lotz
  • 85
  • 1
  • 10
0
votes
1 answer

UNC path can be mapped from command line but not from .NET Console application

How can I make the .NET code map the Z: drive to the UNC path for account SVNdatamgmt? I'm trying to map a local drive to a network UNC path within a .NET console application. The code seems to work from the command line for both the service…
JustBeingHelpful
  • 18,332
  • 38
  • 160
  • 245
0
votes
1 answer

can record unc connection?

The Pc I use have an UNC file. I'm in a Network with other people. Every other can open the file by tipping in the adress line \\file. Know I want to write a c# programm in Vs2010 which watch over the file I use Win7 32bit. If any one Open the file…
Sam
  • 77
  • 5
0
votes
1 answer

Convert UNC path to local path (and general path handling in Python)

System: Python 2.6 on Windows 7 64 bit Recently I did a lot of path formatting in Python. Since the string modifications are always dangerous I started to do it the proper way by using the 'os.path' module. The first question is if this is the right…
Mr. Dice
  • 61
  • 2
  • 7
0
votes
1 answer

java path to file on server must double backslah

I have a Java GUI. The user selects with the JFileChooser Dialog a file including the path to the file. The path is displayed in a text box, e.g. \\developDB\directory\subdirectory\file.info When I access the file with an InputStream using the…
Guido
  • 926
  • 2
  • 10
  • 19
0
votes
1 answer

File display in WebBrowser very slow with (some) networked files

I have a Windows Form containing a WebBrowser, that I'm using to display PDF documents inside my apps. I have a Document class with a FileName property, and the WebBrowser's source is bound to that property. However, with some networked files, the…
T. Fabre
  • 1,517
  • 14
  • 20
0
votes
2 answers

How do I create a bitmap object using a UNC path?

I am trying to do something like this Bitmap img = new Bitmap("\\\\server\\folder\\picture.jpg"); which fails every time. I know I have permission to read the file because I can manually access it. In general, I would like to know how to work with…
0
votes
1 answer

Why does Android tablet say "Webpage not available" on UNC path file:///

On a simple network I have machine on 192.168.1.251, where I've shared a directory as "audio". On another machine in the network, I type "file:///192.168.1.251/audio" in the browser address bar and I get a directory listing (expected result). But…
Dale
  • 5,520
  • 4
  • 43
  • 79
0
votes
2 answers

Java-Application: Execute Batch File with subprocess / UNC Path

I want to execute a batch file within my java application. I want to execute it this way: String[] args = new String[] { "C:/Users/User1/Desktop/Bachelor Thesis/JDBC Connector/jdbc_5.2_sp1_patch05/bin/connect.bat", …
Metalhead89
  • 1,740
  • 9
  • 30
  • 58
0
votes
1 answer

Printing to a UNC to emulate command prompt 'copy'

We have several applications that generate their own PCL and Postscript via C#. When it comes to print we've traditionally allowed for multiple outputs such as IP (LPR or RAW 9100) or local printer using: How to send raw data to a printer by using…
Douglas Anderson
  • 4,652
  • 10
  • 40
  • 49
0
votes
0 answers

Do links using UNC paths work differently in .Net 4.0?

I'm working on an ASP.Net site which allows users to link documents using a UNC path. This site is used by a customer of ours for internal processes, so all users on their domain should have access to the UNC path. The linked documents are displayed…
ks78
  • 927
  • 2
  • 17
  • 34
0
votes
2 answers

Can you disable UNC paths in Windows?

We are trying to lock down a Terminal Server, and want to remove a commercial package's ability to accept UNC file paths, ie. paths in the app can then only be entered using the windows drive letters. Is there any way to do this in Windows? Can we…
Evan
0
votes
1 answer

Parsing a network path with credentials into base class library types

Consider the following UNC path to a simple windows network share (SMB protocol): \\host\share You can easily create an instance of System.Uri or System.IO.DirectoryInfo by passing that path as a string to the constructor. Now consider the…
Steven Liekens
  • 13,266
  • 8
  • 59
  • 85
0
votes
2 answers

TFS InvokeMethod Delete Access to the path is denied

I am trying to call invokemethod to delete a file in the drop folder. However I am receiving access to the path is denied message. I am also doing copydirectories and delete directory before using invokmethod. Both copy and delete directories work…
samuelsoe
  • 11
  • 2
0
votes
2 answers

php hyperlink to uncpath IE

I am trying to get a file on a server on a lan to get opened by a client pc via a hyperlink. For now I only need this to work on IE. lets say that the filename is stored in the variable $sPath so that file_exists($sPath) returns true, and the…
Sheena
  • 15,590
  • 14
  • 75
  • 113