zoukankan      html  css  js  c++  java
  • 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:

    \servernamesharenamepathfilename


    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:
     \corp1lawdeptformspatentap.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:
    \srvdatafilesharesettings.mdb
    or 
    Code:
    \srvdata"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:           \srvdata    Microsoft Windows-network 

    The command completed successfully. 



    
    
  • 相关阅读:
    每月碎碎念 | 2019.7
    聊聊HTML5中的Web Notification桌面通知
    Python的海龟绘图法小知识
    面向对象是什么意思?通俗易懂
    HTML实体
    gcc错误[Error] ld returned 1 exit status
    Markdown怎么使用制表符TAB键?为什么TAB失灵了?
    力扣题解——2的幂
    Jquery中的Ajax
    7个你可能不认识的CSS单位
  • 原文地址:https://www.cnblogs.com/kex1n/p/5773622.html
Copyright © 2011-2022 走看看