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 The command completed successfully. |
UNC path的更多相关文章
- [python] os.path说明
os.path - Common pathname manipulations操作 This module implements some useful functions on pathnames. ...
- os.path官方文档(附翻译)
This module implements some useful functions on pathnames. To read or write files see open(), and fo ...
- Nodejs源代码分析之Path
今天介绍一下nodejs Path的源代码分析,Path的API文档在https://nodejs.org/dist/latest-v5.x/docs/api/path.html,使用相对简单,在AP ...
- Python之路第一课Day5--随堂笔记(模块)
本节课程大纲: 1.模块介绍 2.time &datetime模块 3.random 4.os 5.sys 6.shutil 7.json & picle 8.shelve 9.xml ...
- python 常用模块之os、sys、shutil
目录: 1.os 2.sys 3.shutil 一.os模块 说明:os模块是对操作系统进行调用的接口 os.getcwd() #获取当前工作目录,即当前python脚本工作的目录路径 os.chdi ...
- python模块(六)
模块,用一砣代码实现了某个功能的代码集合. 类似于函数式编程和面向过程编程,函数式编程则完成一个功能,其他代码用来调用即可,提供了代码的重用性和代码间的耦合.而对于一个复杂的功能来,可能需要多个函数才 ...
- Python之路----------shutil模块
高级的文件.文件夹.压缩包 处理模块 复制文件: import shutil f1 = open('test') f2 = open('test2','w') shutil.copyfileobj(f ...
- Create a SQL Server Database on a network shared drive
(原文地址:http://blogs.msdn.com/b/varund/archive/2010/09/02/create-a-sql-server-database-on-a-network-sh ...
- redhat samba匿名登录服务器搭建
smb服务器只需要yum install samba 安装起,并修改配置文件就可以匿名使用了. smb配置文件,这里允许匿名登录.红色部分代表我共享出来文件夹参数code [root@localh ...
随机推荐
- jquery ui 常用(一)(自动完成 | 标签页 | 折叠面板 | 带图标的按钮 | 日期选择器| )
条件,引用3个文件 jquery-ui.min.css; jquery.min.js; jquery-ui.min.js. 一.自动完成 http://www.w3cschool.cc/jqueryu ...
- [vuforia][unity3d]资源链接
http://bbs.csdn.net/topics/390787189 CSDN论坛中 “Qualcomm Vuforia(AR虚拟现实)开发” 主题资源下载 http://bbs.csdn.net ...
- java程序 输入10个数字并求和
课程作业: 模仿JavaAppArguments.java示例,编写编写一个程序,此程序从命令行接受多个数字,求和之后输出结果. 设计思想: 先从命令行读出数字,然后计算各个数字之和.求出结果. 流程 ...
- 【转】MYSQL入门学习之五:MYSQL的字符集
转载地址:http://www.2cto.com/database/201212/175541.html MySQL的字符集支持(Character Set Support)有两个方面:字符集(Cha ...
- JS获取非行间样式
我们都知道用offset函数获取元素样式是一件很方便的事,但是offset只能获取行间样式,而无法获得非行间样式,这是它的瓶颈所在. 我们都知道js获取行间样式的方法,那么js是如何获取行距样式的呢? ...
- 中国行政区域(省,市,县)SQL
数据库:Region CREATE DATABASE [Region] 表:Province CREATE TABLE [dbo].[Province]( [Id] [int] NOT NUL ...
- vc6
适合win7使用的: http://pan.baidu.com/s/1nt7SG57
- cmake安装的软件要怎么卸载
找到make install之后产生的这个文件install_manifest.txt里面有安装的所有东西的路径,删除它们即可.参考命令:cat install_manifest.txt | sudo ...
- 制作动画效果:《CSS3 Animation》
在开始介绍Animation之前我们有必要先来了解一个特殊的东西,那就是"Keyframes",我们把他叫做“关键帧”,玩过flash的朋友可能对这个东西并不会陌生.下面我们就一起 ...
- c++のdll两种调用方式
调用DLL有两种方法:静态调用和动态调用. (一).静态调用其步骤如下: 1.把你的youApp.DLL拷到你目标工程(需调用youApp.DLL的工程)的Debug目录下; 2.把你的youApp. ...