Windows:如何将驱动器符号链接到另一个驱动器?(Windows: How to symlink drive to another drive?)

编程入门 行业动态 更新时间:2024-10-26 13:24:28
Windows:如何将驱动器符号链接到另一个驱动器?(Windows: How to symlink drive to another drive?)

我有一个客户端,其数据已从H驱动器移动到I驱动器,但他们的Access导出脚本似乎已将H驱动器硬编码为目标,即使它在新系统上不再存在。 我将如何创建映射到I驱动器的H驱动器? 我是一个unix / linux的家伙。

我正在猜测像mklink /d H: I: 这会起作用吗?

I have a client whose data has been moved from the H drive to the I drive, but their Access export script seems to have hardcoded the H drive as the destination even though it no longer exists on the new system. How would I create an H drive that maps to the I drive? I'm a unix/linux guy.

I'm guessing something like mklink /d H: I:? Would that work?

最满意答案

不,mklink不会为你做。 你需要做的是创建一个虚拟硬盘(VHD)并将客户端的数据复制到它。 (或修改导出脚本,这是最好的选择。)我使用Windows 7来测试下面的说明。

开始 - >运行 - > diskmgmt.msc(接受所有默认值...我没有做任何特别的下面)

从菜单栏选择操作 - >创建VHD

选择位置并命名文件(这将是vhd)并指定大小,然后单击确定。

右键单击磁盘#(下面将是未知的,大小和“未初始化”)。 选择“初始化磁盘”,然后单击确定

右键单击未分配磁盘空间的黑色栏并选择“新建简单卷”。 一个向导在第二页打开,它可以让你分配驱动器号。 完成向导,你就完成了!

No, mklink isn't going to do it for you. What you need to do is to create a virtual hard drive (VHD) and copy the client's data to it. (Or modify the export script, which is the best thing to do.) I used Windows 7 to test my instructions below.

Start-> run-> diskmgmt.msc (accept all defaults... I'm not doing anything special below)

From the menu bar select Action -> Create VHD

Choose the location and name the file (which will be the vhd) and specify the size and click OK.

Right click on the Disk # (underneath will be Unknown and the size and "Not Initialized"). Select "Initialize Disk" & click OK

Right click on the black bar of the unallocated disk space and select "new simple volume". A wizard opens up an on the second page it lets you assign the drive letter. Complete the wizard and you're done!

更多推荐

本文发布于:2023-08-04 15:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1417887.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:驱动器   如何将   符号   链接   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!