Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Every time I tried using junction on an existing folder, I was given an error message that the folder already exist. Is there some sort of special command that can handle this?

Example for clarity: junction.exe c:\users\Goran\AppData d:\Data\AppData gives me a message: "c:\users\Goran\AppData" already exists. (Duh, I know)

share|improve this question
up vote 2 down vote accepted

The target folder must be empty.

The operation would succeed if and only if C:\Users\Goran\AppData is empty.

The example of junction.exe usage confirms that. Yet it does not say the target folder, I mean the folder that will become junction, must be empty.

Reparse Points (the same as junction points):

The following restrictions apply to reparse points:

  • Reparse points can be established for a directory, but the directory must be empty. Otherwise, the NTFS file system fails to establish the reparse point.
share|improve this answer
Oh well.. Do you know of any other tool that could do the same thing that junction.exe does? I can't make the AppData folder empty because some files are ALWAYS being used by the OS.. – Goran_Mandic Nov 21 '12 at 19:15
No other tool can do this because it is the limitation of the NTFS. – Alexey Ivanov Nov 21 '12 at 19:28
@Goran_Mandic You can workaround it by creating another temporary account. Then as administrator move registry files ntuser.* from C:\Users\Goran\AppData to D:\Data\AppData, then remove everything from C:\Users\Goran\AppData and create the junction. (Do a backup of registry files just in case something goes wrong.) – Alexey Ivanov Nov 21 '12 at 19:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.