I have an application that writes files, let's say, on folder C:\Users\AppData\FOLDER
I want to create a link so the files end up on D:\FOLDER.
- Do I use soft sym link or junction
- Why do I have the error "cannot create a file when that file already exists?"
mklink /D D:\FOLDER "C:\Users\AppData\Folder"
Both folders are on the same disk, they do exist, and they are different partitions with the same filesystem (NTFS)
Thanks in advance
11 Answer
Move the files & folders form: "C:\Users\AppData\Folder" to "D:\FOLDER" Then delete "C:\Users\AppData\Folder" and: mklink /d "C:\Users\AppData\Folder" "D:\Folder"
Or rename "C:\Users\AppData\Folder" to something else and then create the link.