Symbolic Links (kind of) in Windows.

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
FlyingMongoose
This is my homepage
This is my homepage
Posts: 353
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Sep 17, 2004 7:50 pm
Contact:

Symbolic Links (kind of) in Windows.

Post by FlyingMongoose »

I did some research, found this useful little utility. Basically after setting up an FTP server I only wanted to set up 1 user for the FTP, but wanted to give that user access to any of the internal game files (like configs, maps, etc). It's pretty simple to use if you're comfortable with a command line, but basically it's called "junction" and it's distributed freely by microsoft on their technet.

It basically holds the same idea (and works with win2k or later) as UNIX symbolic links. Lets say I want to give access to team fortress 2 (the tf dir) and left 4 dead 2 (the left4dead2 dir) that would be linked from another folder, I would first create that empty folder (which I associate the FTP user/group with), then I would execute the following command with junction

Code: Select all

junction.exe C:\freshfolder\teamfortress2 C:\path-to-tf-dir
junction.exe C:\freshfolder\left4dead2 C:\path-to-left4dead2-dir
That's it, now the user who's associated with that folder will see those folders in that dir and they'll point them directly to the folders you linked them to. You can always unlink them as well using the following.

Code: Select all

junction.exe -d C:\freshfolder\teamfortress2
(and of course left4dead2 as well).

yes it does work similarly to the symbolic links in *nix systems, but it's "not quite the same".

Also a warning on downloading this, it downloaded for me as junction_zip, I renamed it to have the proper extension to be able to open it (not sure why it did this), just added .zip to the end, and then extracted where I wanted it.

http://technet.microsoft.com/en-us/sysi ... s/bb896768

Enjoy!
Image
Post Reply