It says my syntax is incorrect, I'm a little stumped. Thank you! This is the code.
C:\WINDOWS\system32>mklink \d C:\Users\kayle\Documents\"Electronic Arts"\"The Sims 4"\realmods D:\Sims4Mods
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
The command to create links might be case-sensitive, you're using the wrong slash, you have your quotations wrong, and the link/target is backwards.
When the file path has a space, the quotation has to be around the entire path, not just the part with the space.
When doing the command where you want to symbolic link to go, comes first, and then the original file path comes second.
For your command you'll want to run the CMD as administrator and then the syntax goes
mklink /D Link Target
mklink /D D:\Sims4Mods "C:\Users\kayle\Documents\Electronic Arts\The Sims 4\realmods"
As already mentioned, the correct switch is
\d. If you are using
\d, this might be the source of your issue.
Also, you should wrap the whole link directory in double quotes (removing the ones you currently have). So your final command might be:
mklink /d "C:\Users\kayle\Documents\Electronic Arts\The Sims 4\realmods" D:\Sims4Mods
realmods is the symbolic link you wish to create and
Sims4Mods is the directory you wish to create a link to i.e. it contains your mod files.)
You can read more about
mklink in the official documentation from Microsoft.
Using Link Shell Extension
Alternatively, another option to consider might be a utility called Link Shell Extension. It adds the ability to "pick" an item and to "drop" a symbolic link to it wherever desired, all in the Windows GUI (via the right-click context menu).
Note that Link Shell Extension uses the original item name as the created link name but the created link can then be renamed as normal in Windows.
Scroll to the bottom of the page linked above for downloads. Otherwise, here are (currently) working links to the executables:
Visual Studio 2015 redistributables may or may not be required, depending on your version of Windows, but can be obtained here (as needed):
You may also wish to check out the
/noredist option for Link Shell Extension on the original website.
Link Shell Extension (Example Use)
ex. Pick Link Source (dat.dat)
ex. Drop Link (use Symbolic Link)
ex. Cancel Link Creation (if we change our minds)