0

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?

1

2 Answers 2

2

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.

4
  • 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
    Commented Nov 24, 2011 at 10:43
  • I edited my answer to make it clearer (hopefully). Commented Nov 24, 2011 at 10:48
  • If you want you can accept my answer. Commented Nov 24, 2011 at 10:50
  • 1
    Done because you were first, even no pretty pictures :P
    – Dragazarth
    Commented Nov 24, 2011 at 11:00
2

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

6
  • +1 - no new content :-P but nice pictures. Commented Nov 24, 2011 at 10:51
  • Someone else gave the answer while I was writing . I need to be quicker :-)
    – Serious
    Commented Nov 24, 2011 at 10:55
  • +1 indeed, but if I wanted to edit special system ones such as APPDATA
    – Dragazarth
    Commented Nov 24, 2011 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
    Commented Nov 24, 2011 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. Commented Nov 24, 2011 at 11:31

You must log in to answer this question.

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