On Windows 10. Here's what I type, and Windows' response:
mklink "path\to\link.pdf" "path\to\target.pdf"
Access is denied.
The desired location for the link is on a network drive. It makes no difference whether the target file is on the same network drive or on my local drive (the former is what I want, the latter I tried just to see if it made any difference, because I have no problems running this command between two locations on my local drive).
I came across these this cross-posted question here and here, which appear to describe an identical issue (though the OP was trying to create a directory link, not a file link). The OP never selected a right answer, though other commenters indicated two solutions worked for them:
fsutil behavior set SymlinkEvaluation R2R:1My setting was indeed off, but turning it on did not change the result.- Turning off UAC and/or running as non-admin user. I tried both, and neither overcame the error.
There's also this thread that describes a similar issue, though none of the suggested steps resolved the OP's issue. I notice that all of these threads were regarding Windows 7, so it may be that something changed in Windows 10 that makes the proposed solutions no longer effective. Does anybody else have any insight?