Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UNC path to a folder on my local computer

What's the UNC path to a folder on my local computer, and how can I access it?

I have tried:

  1. Security for the folder – set to Everyone Full Control (for now!)
  2. Sharing permissions – set to Everyone Full Control (for now!)

I can see the folder in \\<computername>, but can't go in (<foldername> is not accessible.)

Error message:

You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions. The network location cannot be reached. For information about network troubleshooting, see Windows Help.

My computer is not connected to a network.

like image 868
xt_20 Avatar asked May 07 '10 08:05

xt_20


People also ask

How do I UNC path a folder?

In Windows, if you have mapped network drives and you don't know the UNC path for them, you can start a command prompt (Start → Run → cmd.exe) and use the net use command to list your mapped drives and their UNC paths: C:\>net use New connections will be remembered.

What is the correct UNC path?

A UNC path uses double slashes or backslashes to precede the name of the computer. The path (disk and directories) within the computer are separated with a single slash or backslash, as in the following examples. Note that in the DOS/Windows example, drive letters (c:, d:, etc.) are not used in UNC names.

What is a UNC path mapped drive?

A UNC (Universal Naming Convention) path is the path to a folder or file on a network. A UNC path contains the server name in the path, and tells Sage where to find your data. An example of a UNC path is: \\server01\sage\accounts.


1 Answers

If you're going to access your local computer (or any computer) using UNC, you'll need to setup a share. If you haven't already setup a share, you could use the default administrative shares. Example:

\\localhost\c$\my_dir

... accesses a folder called "my_dir" via UNC on your C: drive. By default all the hard drives on your machine are shared with hidden shares like c$, d$, etc.

like image 85
William Leara Avatar answered Oct 05 '22 22:10

William Leara