Why can't the system find the path specified when creating the symbolic link?

C:\windows\system32>mklink /D U:\"Mobile Apps"\Repos C:\Users\LeiceJ\Source\Repos The system cannot find the path specified.

I am trying to configure a symlink to access the Repository folder from a network drive. Since Visual Studio does not like network drives, I need to store things locally, but I will work from different computers on the network, so the only consistent file structure that I will have is a network drive. So that there is no need to constantly dig into folders with C drives every time I want to open something, I want to create a symbolic link in the Repos folder.

Every time I try to create a link, I get this error The system cannot find the path specified.. Ways exist, both are right. The only thing I can think of is to drop it, that the link is connected to a network drive.

+4
source share
2 answers

I think the problem is that your link is arborescence and that you use /Dinstead /J, which can handle network locations.

"u:\mobile apps\repos" contains 2 folders (mobile applications and repositories)

It seems that mklinkit cannot create 2 folders. Therefore, if you try like this:

mklink /J "U:\Mobile Apps" C:\Users\LeiceJ\Source\Repos he will work.

You can also manually create a folder called "mobile applications" and then it will work.

Another point: it seems that you turned the target over the link (but not sure). If you want to specify a disk card U:as the target during input "C:\Users\LeiceJ\Source\Repos", you need to invert two parameters in your command.

TL; DR: mklink /J , .

+1

.

U:\"Mobile Apps"\Repos

... ...

"U:\Mobile Apps\Repos"

:

mklink /D "U:\Mobile Apps\Repos" C:\Users\LeiceJ\Source\Repos
-1

Source: https://habr.com/ru/post/1651476/


All Articles