Windows: How to symlink drive to another drive?

假装没事ソ 提交于 2021-02-10 08:27:09

问题


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?


回答1:


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!




回答2:


You can use good old SUBST command for that "subst H: I:" Create some startup CMD to make it available after reboot.




回答3:


Map a network drive to \\localhost\H$ and set it to Drive I.



来源:https://stackoverflow.com/questions/18111664/windows-how-to-symlink-drive-to-another-drive

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!