Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Possible Duplicate:
What is the equivalent of Linux's “~” in Windows?

For example, is there a character I can enter in place of the asterisk in the string "*\Videos" that is equivalent to typing the string "C:\Users\myusername\Videos"?

I'm particularly interested in using this method to jump to my user directory from the Windows key dialog.

Please pardon any butchering of technical terminology.

share|improve this question

marked as duplicate by slhck Sep 17 '12 at 18:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 5 down vote accepted

Unfortunately, in regular windows prompt there is no shorthand notation. You can use %userprofile% or %homepath%, for example cd %userprofile% and cd %HOMEPATH%\Videos as per your example

In Powershell, however, you can use the tilde ~. If you use console a lot I would recommend creating a shortcut to the Powershell rather than regular command prompt

share|improve this answer
Yep: I wrote home.bat for myself, it looks like this - @cd /d %userprofile%. So I don't type it at, I just run "home". – Mark Allen Sep 17 '12 at 18:36
You can create your own environment variables to accomplish something like ./, but you have to use the %variable% notation (e.g. %./%) – Andrew Lambert Sep 17 '12 at 18:40

Not the answer you're looking for? Browse other questions tagged or ask your own question.