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.

For example you can type into the windows searchbar/run window %appdata% and it takes you straight to your C:\Users\USERNAME\AppData folder (on windows 7) How can I make my own links likes this? Also how do I edit existing links like that to go to a different directory?

I am assuming its some kind of thing like mklink, or just a list in some file somewhere. What can I do?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Seems that environment variables do the trick, at least under Windows 7. E.g. I have created a user environment variable REF2Root with value C:\Ref2. (See Serious' answer for a description of how to do that.) If I now press the Windows key to open the start menu and type %REF2Root% the system opens an explorer window for C:\Ref2.

share|improve this answer
    
So In the advanced system properties (when right clicking on my computer) I should be able edit these in the environment variables window? Appdata doesn't seem to be in there so I cant edit that and putting it in manually seemed to fail, hopefully it will work for other links though, thanks! (Can't vote you up but I would if I could) –  Dragazarth Nov 24 '11 at 10:43
    
I edited my answer to make it clearer (hopefully). –  Ulrich Gerhardt Nov 24 '11 at 10:48
    
If you want you can accept my answer. –  Ulrich Gerhardt Nov 24 '11 at 10:50
1  
Done because you were first, even no pretty pictures :P –  Dragazarth Nov 24 '11 at 11:00

Add a new environment variable for example: variable name: mypath variable value: D:\songs

Now you can type %mypath% in run and access the songs folder. enter image description here

share|improve this answer
    
+1 - no new content :-P but nice pictures. –  Ulrich Gerhardt Nov 24 '11 at 10:51
    
Someone else gave the answer while I was writing . I need to be quicker :-) –  Serious Nov 24 '11 at 10:55
    
+1 indeed, but if I wanted to edit special system ones such as APPDATA –  Dragazarth Nov 24 '11 at 10:58
    
I have found out how to do that now though, through regedit -> HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders and then the system name you like –  Dragazarth Nov 24 '11 at 11:00
    
I'm not sure if changing %appdata% etc is a good idea. I guess quite a lot of stuff depends on it pointing to the "real" directory. –  Ulrich Gerhardt Nov 24 '11 at 11:31

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.