Windows – Symbolic Link Directory (mklink /D) The system cannot find the path specified

command linesymbolic-linkwindows

When I do this command:

mklink /D "C:\Users\user\Desktop\MyDocs\VSCode" "C:\Users\user\.vscode"

I get the error : "The system cannot find the path specified."

I run cmd as admin.
I am able to create Symbolic Link Directory for others folders.
I have followed the recommandation on this question.
I am able to move to the .vscode with cd C:\Users\user\.vscode and to list its content with dir.

C:\Users\user\.vscodeis a hidden folder.
I am on Windows 10.

Best Answer

This might work better :

cd "C:\Users\user\Desktop\MyDocs\"
mklink /D VSCode "C:\Users\user\.vscode"
Related Question