# Symbolic linkage or in-sync folder replication on Windows?

I have an application—actually a web-framework+web-server—which requires its folders—including the application I'm hosting—to be in a child directory; e.g., in: \htdocs.

The application/project I'm hosting is part of a bigger git repository, thus also cannot be moved outside of a child directory.

On Windows, is it possible to do some sort of symbolic linkage or in-sync folder replication?

I.e.: so when I update the contents of the folder it is also updated in its sister location.

-
Might help to state what version of windows - newer ones have much better symlink support. – Journeyman Geek Jul 28 '12 at 1:57
I believe the command you might be looking for is mklink which is available in vista and above. Otherwise you will most likely need to use the junction program from sysinternal. technet.microsoft.com/en-us/sysinternals/bb896768 – Phillip R. Jul 28 '12 at 2:26
Windows 8. I've been looking through the mklink and junction commands, both are giving me: "Error creating foo: Cannot create a file when that file already exists." errors. E:>mkdir a && echo fff > a\bar.txt && junction a foo and E:>mkdir a && echo fff > a\bar.txt && mkdir foo && junction a foo both gave this error. – A T Jul 28 '12 at 2:26
You can also use allwaysync.com which can monitor a folder and sync it to another either one way syncing or bi directional. – Phillip R. Jul 28 '12 at 2:30
Try this command "md a && echo fff > a\bar.txt && mklink /J foo a" a is the real folder and foo is the junction that points to a. – Phillip R. Jul 28 '12 at 2:46