Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.