- About Me
- Consulting Services
Does Windows Have Symlinks? YES!
So I was trying to do something the other day with my ServeToMe server. I wanted to add certain folders to the media server that were on different drives. For personal reasons, I wanted to add the folders I wanted to share under the existing folders I was currently sharing, so I thought I would create shortcut files to those folders and drop them inside the folders I was already sharing. I quickly found out that this didn't work.
Hmmm, so I was thinking and thought if Windows has something like Linux symlinks, then it would have to work. I did a quick search on how to create symlinks on windows and sure enough I found it, the command is mklink. So I gave it a try and it worked perfectly. The media server software on my iphone was able to open up the folder just as if it were a regular folder that existed under the root folder that was shared.
This works on Windows 7, not sure about anything older than that. The command is
mklink /D C:\symlink-file-you-want-to-create C:\the-folder-you-want-to-link
So to create a symlink from inside my media folder to my storage drive folder I would do this:
mklink /D "C:\Media Folder\MusicArt" C:\storagedrive\musicart
Notice I put the quotes around the first path, this is because I have a space in the file path, so I need to enclose it with quotes.