In Linux, we can go to the user home by entering the tilde (
~
) character aftercd
:cd ~
How to do the same in Windows?
Each time, I need to type:
cd C:Document and Settingsfreewind
That’s too boring.
Solution:
cd /d "%HOMEDRIVE%%HOMEPATH%"
would do it — but I ‘m not sure if you consider it an improvement.
You can also define an alias for the above command:
doskey cdhome=cd /d "%HOMEDRIVE%%HOMEPATH%"
After this, it’s simply cdhome
.