查找网络驱动器的

查找网络驱动器的

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

问题描述

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

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:        \server1foo             Microsoft Windows Network
OK           X:        \server2ar             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 路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 18:38