博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
UNC path
阅读量:6630 次
发布时间:2019-06-25

本文共 2130 字,大约阅读时间需要 7 分钟。

http://www.emailsignature.eu/phpBB2/how-to-get-a-unc-path-name-t341.html

 

In a network, the Universal Naming Convention (UNC) is a way to identify a shared  in a computer without having to specify (or know) the storage device it is on. In Windowss, Novell , and possibly other operating systems, the UNC can be used instead of the local naming system (such as the DOS naming system in Windows).

 

In Windows operating systems, the UNC name format is:

\\servername\sharename\path\filename The share name is sometimes said to logically identify the volume or storage device that the file is on, but the idea is to free the user from having to know this. The  is zero or more folder or subfolder names (in other words, the file name may exist directly under the sharename). For example:
\\corp1\lawdept\forms\patentap.html might specify on a server in the corporate main office a shared file (patentap.html) kept with other legal forms that members of a corporation's legal department might download and read or print and use.  Printers and other devices can also be addressed using UNC. UNC stands for "Uniform Naming Convention". eMailSignature supports UNC, as opposed to network-mapped drives.  The format of a UNC path is: 
Code:
\\<servername>\<sharename>\<directory>
where: 
The Network name 
The name of the share 
Any additional directories below the shared directory.  Examples with an without space in share name: 
Code:
\\srv\data\fileshare\settings.mdb
or 
Code:
\\srv\data\"file share"\settings.mdb
If you need to determine the UNC path to a drive or directory, which contains your settings database, here is a simple way to get the path:  Execute the command "net use" on the computer you wish to translate the mapped drive letters for.  The output from this command will contain the drive letters and their equivalent UNC filenames: 

Code:
C:\>net use 
New connections will not be remembered. 
Status        Local        Remote        Network 
------------------------------------------------------------------------ 
OK            F:           \\srv\data    Microsoft Windows-network 
The command completed successfully. 
 
 

转载地址:http://cawvo.baihongyu.com/

你可能感兴趣的文章
How to extend size of LVM
查看>>
黑马程序员---java基础------------------String类
查看>>
什么是Date对象一个内置对象Date:
查看>>
Activity.this和getApplicationContext()的差异
查看>>
用“倍增法”求最近公共祖先(LCA)
查看>>
何不食肉糜 | 机器学习自学指南
查看>>
jq 点击按钮换图运动
查看>>
体验JAVA 11新特性
查看>>
js 中编码(encode)和解码(decode)的三种方法
查看>>
C#文件拖到TextBox中获取文件显示文件路径
查看>>
Java中普通代码块,构造代码块,静态代码块区别及代码示例
查看>>
<%@ page import=""%>的用法
查看>>
myeclipse2014下卸载,安装maven插件。
查看>>
jq获取路径参数的方法
查看>>
使用sql追踪
查看>>
Ubuntu 最好用的CHM阅读器KchmViewer
查看>>
使用默认参数的构造函数 .
查看>>
NTFS u盘支持 - centos6
查看>>
洛谷P4206 [NOI2005]聪聪与可可(期望dp+最短路)
查看>>
如何在SqlServer中获取前端连接的IP地址,计算机名等信息
查看>>