Is there a shortcut command in Windows command prompt to get to the current user's home directory like there is in Linux?
Problem
I am used to using to get right into my home directory. In Windows command prompt I have to do to get there. Is there a shortcut like the Linux one? It would be nice if I could get there by doing Is something like this possible in Windows Vista?
Error Output
cd ~
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Is there a shortcut command in Windows command prompt to get to the current user's home directory like there is in Linux?
Yes, you can use , and . These contain the full path of the user's home directory (without drive letter), and the drive letter, respectively. There are quite a few other useful variables available, such as (Operating System), or (Windows system directory). See Wikipedia: Environment Variables for a list. Notes: Actually, things are a bit complicated (as usual). There is also , which does contain the drive letter, and is usually the same directory as plus . The values of these variables, and whi…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix