UNC path

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 file in a computer without having to specify (or know) the storage device it is on. In Windowsoperating systems, Novell NetWare, 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 path 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: <servername> The Network name <sharename> The name of the share <directory> 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. 


				
时间: 2024-11-06 01:33:49

UNC path的相关文章

[python] os.path说明

os.path - Common pathname manipulations操作 This module implements some useful functions on pathnames. To read or write files see open(), and for accessing the filesystem see the os module. The path parameters can be passed as either strings, or bytes.

Nodejs源代码分析之Path

今天介绍一下nodejs Path的源代码分析,Path的API文档在https://nodejs.org/dist/latest-v5.x/docs/api/path.html,使用相对简单,在API文档中,须要特别说明的是例如以下的文字: This module contains utilities for handling and transforming file paths. Almost all these methods perform only string transforma

UWP开发技巧:实现SMB协议操作文件服务器文件

问题来源 文件服务器文件夹操作在PC与Surface端确实还是和传统操作一样没什么区别,但是到了手机端与Surface Hub就没那么方便了,因为文件资源管理器Explorer根本没法添加网路硬盘.对于传统行业以及担心云端文件安全的企业固然还是希望能使用文件服务器,特别是SurfaceHub用户.SurfaceHub用户开会的时候会用到很多敏感文件,这个时候如果无法访问内部机密文件服务器,那还有什么用处? 解决方法 由于SurfaceHub只能安装UWP应用,自然首先考虑UWP的实现.目前支持S

python第五节

一.定义模块: 模块:用来从逻辑上组织python代码(变量.函数.类.逻辑:实现一个功能),本质就是以.py结尾的python文件(文件名:test.py ,对应的模块名就是test) 包:用来从逻辑上组织模块的,本质就是一个目录(必须带有__init__.py的文件)二.导入方法: 1.import module_XP#命名为module_XP.py#需要导入的模块内容#!/usr/bin/env python# -*- coding: utf-8 -*-# Author :XPname =

SQL Server Extended Events 进阶 1:从SQL Trace 到Extended Events

http://www.sqlservercentral.com/articles/Stairway+Series/134869/ SQL server 2008 中引入了Extended Events 用以替换SQL Trace. 然而在第一个版本中并没有为用户提供UI,因此使用Extended Events并不是很方便.SQL Server 2012及时修正了这一点,将UI管理工具集成在SSMS中, 这就意味着我们不需要再为了查询Event XML而学习使用XQuery了.因此跟多的DBA和开

Linux局域网文件分享系统Samba

上学的时候在学校机房见过FTP做的文件分享系统,服务器是Windows的,当时感觉功能真的很强大,不管是哪台机器都可以共享一个文件夹,后来自己在家里通过查阅各种资料,用自己的win7做FTP服务器,做了一个文件服务器,但是真的很鸡肋,操作体验真的不尽人意. 下面介绍的是Linux服务器平台安装的文件分享系统软件Samba,通过Samba部署的文件分享系统可以兼容Mac.Linux和Windows三大主流操作系统,而且操作体验也非常好,自己在家里做了一个小型分享系统,家用服务器的配置:CPU:凌动

C# 7.0 中的新增功能

来源:Mark Michaelis 链接:msdn.microsoft.com/magazine/mt790184   解构函数 从 C# 1.0 开始,就能调用函数,就是将参数组合起来并封装到一个类中的构造函数.但是,从来没有一种简便的方式可将对象解构回其各个组成部分.例如,假设有一个 PathInfo 类,它采用文件名的每个元素(目录名.文件名.扩展名),并将它们组合成一个对象,然后支持操作对象的不同元素.现在,假设你需要将该对象提取(解构)回其各个组成部分. 在 C# 7.0 中,通过解构

ckeditor+ckfinder

官方地址:http://ckeditor.com/ 复制ckeditor和ckfinder的文件夹到项目根路径下 拷贝ckfinder的config.xml到WEB-INF下 <config> <!-- CKFinder : Configuration File - Basic Instructions In a generic usage case, the following tasks must be done to configure CKFinder: 1. Check the

Debugging Chromium on Windows

转自:https://www.chromium.org/developers/how-tos/debugging-on-windows For Developers‎ > ‎How-Tos‎ > ‎ Debugging Chromium on Windows 目录 1 Before you start 1.1 Requirements 1.2 Optional 2 Multi-process issues 2.1 Single-process mode 2.2 Using Image File