Wednesday, 2 January 2019

shortcuts - Is there a windows equivalent to using ~/ as a shorthand symbolizing your home/user directory?




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.



Answer



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


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...