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.

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.

add comment

1 Answer

up vote 4 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
1  
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
add comment

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