简体   繁体   English

链接一个替代驱动器中的文件夹

[英]link a folder in a subst Drive

I have following situation: 我有以下情况:

  • I substed my D\\ Drive to X\\ 我将D \\驱动器替换为X \\

What I want: 我想要的是:

-I have a folder in X : X:\\test Now I want to have a link in X: with folowing constelation: X:\\folder\\test -我在X中有一个文件夹: X:\\ test现在我想在X:中有一个链接,其中包含以下内容: X:\\ folder \\ test

I tried following in a batchfile: 我尝试在批处理文件中执行以下操作:

mkdir  X:\folder
mklink /D  X:\folder\test X:\test

Result: 结果:

If I run it normal: something like : You don't have enough permission to do that 如果我正常运行它,则类似于: 您没有足够的权限执行该操作

as Admin: something like : The System can't find the Path 作为管理员:类似于:系统找不到路径

Your admin command is running in a different context than the non admin, and it does not see the substed drive. 您的admin命令在与非admin不同的上下文中运行,并且看不到已驱入的驱动器。 Repeat the subst command in the admin command line and then create the link from it. 在admin命令行中重复subst命令,然后从中创建链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM