打开远程计算机的 Windows C 驱动器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/606534/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Opening a remote machine's Windows C drive
提问by Ross Rogers
I'm trying to locally mount a machine's C drive that is on my LAN. I need to able to browse the contents of the other machine when tracing through code. I once saw a sys admin do some crazy windows incantation from the cmd prompt. Something like $remote_machine/local_access/C
我正在尝试在我的 LAN 上本地安装机器的 C 驱动器。在跟踪代码时,我需要能够浏览另一台机器的内容。我曾经看到一个系统管理员在 cmd 提示符下做了一些疯狂的 windows 咒语。类似于 $remote_machine/local_access/C
Is anyone familiar with how this is done?
有没有人熟悉这是如何完成的?
回答by Ryan Emerle
If it's not the Home edition of XP, you can use \\servername\c$
如果不是家庭版XP,可以使用 \\servername\c$
Mark Brackett's comment:
马克·布拉克特的评论:
Note that you need to be an Administrator on the local machine, as the share permissions are locked down
请注意,您需要是本地计算机上的管理员,因为共享权限已锁定
回答by Mark
If you need a drive letter (some applications don't like UNC style paths that start with a machine-name) you can "map a drive" to a UNC path. Right-click on "My Computer" and select Map Network Drive... or use this command line:
如果您需要驱动器号(某些应用程序不喜欢以机器名称开头的 UNC 样式路径),您可以将驱动器“映射到 UNC 路径”。右键单击“我的电脑”并选择映射网络驱动器...或使用以下命令行:
NET USE z: \server\c$\folder1\folder2
NET USE z:\server\c$\folder1\folder2
NET USE y: \server\d$
网络使用 y:\server\d$
Note that you can map drive-to-drive or drill down and map to sub-folder.
请注意,您可以映射驱动器到驱动器或向下钻取并映射到子文件夹。
回答by Roger Lipscombe
By default, Windows makes the root of each drive available (provided you've got Administrator privileges) as (e.g.) \\server\c$
. These are known as Administrative Shares.
默认情况下,Windows 使每个驱动器的根目录可用(前提是您具有管理员权限)为 (eg) \\server\c$
。这些被称为管理共享。