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

check if url unc directory path exist

I am trying to check if the unc path folder (from web user input) was existing, here's my code: Directory.Exists("file://localhost/c$/folderName/"); //this always return false This is not duplicate of :…
dr.Crow
  • 1,493
  • 14
  • 17
1
vote
1 answer

ODBC: Cannot read DBF via network UNC path

Long story short, I needed to pull data from legacy DBF files, on multiple shared locations on the network, via powershell. I have no issues opening them with [System.Data.Odbc] (avoiding the need to install the Jet OLEDB drivers), but am having a…
NPras
  • 3,135
  • 15
  • 29
1
vote
0 answers

SEC7111 HTTPS Security compromise with UNC file path

In writing a bookmarklet to load an external script via script tag injection, I've come across the SEC7111 Error in IE, but unlike all the other questions and answers I've found on this error, I don't believe I currently have the option of changing…
Code Jockey
  • 6,611
  • 6
  • 33
  • 45
1
vote
1 answer

PowerShell - Problems Passing Variables into ForEach Loop

I am trying to enumerate a list of servers from Active Directory, and then insert the server name into a UNC path as part of a copy command. When I execute the script, I get the result below. I think that maybe I have to convert my variable, but I…
dave562
  • 33
  • 4
1
vote
0 answers

Python script win_unc returning error

I have a Python script for checking backups. Part of the check is to check a file on a UNC share. The Python module win_unc is used to achieve this. Originally the script was mounting and disconnecting to the network share every time. I've changed…
kafka
  • 553
  • 6
  • 19
1
vote
0 answers

PowerShell 2.0 Network Path not found when creating drive and copying files

The script works for several days, and then I get an email message saying it failed because "The network path was not found". When I run it manually it works fine, so it's hard to find the problem. How do I keep it from dropping/losing the network…
Gemini
  • 109
  • 2
  • 15
1
vote
2 answers

test-path not working when in a scheduled task

I have a script to return the list of database backup files on a number of remote database servers. I use Test-Path to check if the UNC path exists, if it exists it returns the list of files using Get-ChildItem. When I test this script the Test-Path…
Shane
  • 11
  • 4
1
vote
1 answer

Obtain files from UNC path that requires a username and password

I have a class library that is being run as [user a] within an application. The application needs to obtain files (their names and their content) from a network locatation that has been set up as a share. The share is on a Windows environment and on…
Jake Mills
  • 11
  • 1
1
vote
0 answers

What causes an IllegalArgumentException: URI authority component has undefined host Exception?

We have a simple desktop application which shows an about dialog with a path to our application and in some rare occasions of customers testing our application the following try { final URL jarPath =…
crusam
  • 6,140
  • 6
  • 40
  • 68
1
vote
1 answer

Check if network drive is mapped php

Does php allow you to check if a network drive is mapped. Essentially on all computers our G:\ drive is mapped. Is it possible using php script to check if the G:\ drive is mapped? In order to access directories and files from the mapped drive I use…
David Egan
  • 424
  • 2
  • 8
  • 23
1
vote
0 answers

Case sensitivity (or StringComparison) of network shares?

What is the case sensitivity of names of network shares? Example from UNC path: (the sharename component only) \\hostname\sharename\directoryname1\directorynameN\filename.ext Can sharename be case-sensitive on some systems? Is the best…
miroxlav
  • 11,796
  • 5
  • 58
  • 99
1
vote
2 answers

Loading video using QMediaPlayer and UNC paths

I'm trying to load a video from a network using UNC paths thanks to Qt 5.5 QMediaPlayer. The code snippet is the following one: projectDirectory = QFileDialog::getExistingDirectory (this, tr…
Victor Lamoine
  • 389
  • 1
  • 2
  • 21
1
vote
0 answers

ASP.NET Impersonation: UnauthorizedAccessException on local file (UNC works)

i'm using ASP.NET impersonation with LogonUser (advapi32.dll). Code in short: LogonUser( username, domain, password, 9, 0, out handle ); WindowsIdentity.Impersonate( handle.DangerousGetHandle() ); When I enter my user credentials I get an…
Powerslave
  • 531
  • 2
  • 7
  • 24
1
vote
2 answers

get DFS/UNC info progromatically - Java

Ok I'll try and keep this short. First let me explain exactly what I am trying to get. If you open Windows Explorer and go to a network drive there is a DFS tab there(must have DFS enabled VIA the servers on the network so it may not be there). In…
1
vote
0 answers

Accessing files across a shared directory using a Windows service

I am trying to access files on a shared directory (sharepoint): \\sitename\sites\Path_to_doc\doc.csv So I have this custom application that looks at files on that shared drive and when I launch the application by going to the folder where it's…
Ram
  • 11
  • 2