Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I deleted "AppData\Local\Application Data\" from my profile and I want to create the link again. My problem is that if I create an mklink to %localappdata%, it behaves differently than the original:

mklink /D "Application Data" %localappdata%

It creates a directory with a never ending infinite loop of "Application Data" \ "Application Data" \ ... folders.

But the original is not like this in Windows, it is a different link. How is it done and how can I recreate the original link structure?

share|improve this question
up vote 1 down vote accepted

Odd. Did you try typing out the path?

I personally wouldn't bother with it. It's there for App compatability reasons. Good behaving apps will use the correct shell alias, not the hardcoded BS.

share|improve this answer
MKLINK has 3 options: /D symbolic link, /H hard link, /J junction. Maybe it's one of H or J. Do you know how could I check on a reference folder what kind of linking is it? – zsero Aug 12 '11 at 12:52
Dir /a /p . /a just lists attributes, including link type. – surfasb Aug 12 '11 at 17:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .