查找网络驱动器的UNC路径? [英] Find UNC path of a network drive?

查看:230
本文介绍了查找网络驱动器的UNC路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够确定WEBMethods项目在工作中的网络Q驱动器的路径.我之前拥有的代码在我的配置文件中.出于安全原因,我在目录中放置了单字符字母.我不确定分号是什么意思,但是我认为双斜杠是驱动器名称起作用的原因.

I need to be able determine the path of the network Q drive at work for a WEBMethods project. The code that I have before is in my configuration file. I placed single character leters inside of the directories just for security reasons. I am not sure what the semi-colon is for, but I think that the double slashes are were the drive name comes to play.

问题:Windows 7计算机上是否有一种简便的方法来找出UNC在特定驱动器位置的完整路径是什么?

Question: Is there an easy way on a Windows 7 machine to find out what the full path of the UNC is for any specific drive location?

代码:

allowedWritePaths=Q:/A/B/C/D/E/
allowedReadPaths=C:/A/B;//itpr99999/c$/A/FileName.txt
allowedDeletePaths=

推荐答案

在Windows中,如果您已映射网络驱动器并且不知道它们的UNC路径,则可以启动命令提示符(开始→运行→cmd.exe ),并使用net use命令列出映射的驱动器及其UNC路径:

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.

Status       Local     Remote                    Network

-------------------------------------------------------------------------------
OK           Q:        \\server1\foo             Microsoft Windows Network
OK           X:        \\server2\bar             Microsoft Windows Network
The command completed successfully.

请注意,这显示了在其下运行命令的用户上下文的已映射和已连接的网络文件共享的列表.如果您使用自己的用户帐户运行cmd.exe,则显示的结果是您自己的网络文件共享.如果使用其他用户帐户(例如本地管理员)运行cmd.exe,则将看到该用户的网络文件共享.

Note that this shows the list of mapped and connected network file shares for the user context the command is run under. If you run cmd.exe under your own user account, the results shown are the network file shares for yourself. If you run cmd.exe under another user account, such as the local Administrator, you will instead see the network file shares for that user.

这篇关于查找网络驱动器的UNC路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆