4

Is it possible? If so, how? Can it be done in CMD?

Existing shortcuts examples :

%appdata%
%temp%
%userprofile%
Guillaume Chevalier
  • 9,613
  • 8
  • 51
  • 79
  • 1
    Those are environment variables, and yes you can create your own. A little Googling will go a long way here. Take a look at http://meta.stackexchange.com/questions/156810/stack-overflow-question-checklist and ask a more specific question. – Mark Oct 10 '13 at 20:44
  • I Googled fast, but apparently I didn't known that it was named an `environment variable`, thanks for the tip ;). Anyway, now this page will be indexed in Google with my title and tags, good thing. *Also, why did you commented instead of answering ? – Guillaume Chevalier Oct 10 '13 at 22:15
  • `set /?` will give you a good starting point – Stephan Oct 11 '13 at 07:05
  • I left a comment since I didn't figure "google it" was a particularly good answer (so not worth the reputation bump :-)), but since you just didn't know your search term, I've added a better fleshed-out answer to help out. – Mark Oct 11 '13 at 19:51

2 Answers2

3

These are environment variables and you can set your own, yes.

You can set them within a script or at cmd prompt with set, and you can make "global" environment variables by going to System Properties/Advanced and clicking the Environment Variables button. Variables added there will be available to all applications. If you have existing cmd windows open, though, they won't get the global variables - you will need to open new windows to make these variables available.

Mark
  • 3,609
  • 1
  • 22
  • 33
0

This should help someone try %AppData%

Halim
  • 2,090
  • 2
  • 16
  • 9