In Linux, we can go to the user home by entering the tilde (
~) character after
How to do the same in Windows?
Each time, I need to type:
cd C:\Document and Settings\freewind
That's too boring.
migrated from stackoverflow.com Sep 7 '11 at 13:13
This question came from our site for professional and enthusiast programmers.
|show 1 more comment|
You can also define an alias for the above command:
After this, it's simply
|show 6 more comments|
You can use
or you can use
|show 4 more comments|
One possibility is to use the
Any time you navigate to drive Z:, you'll be looking at your user folder.
The downside is that you need to run it every time you log in. I used a batch file and just put it in my startup folder, but there are probably more elegant solutions to this.
The benefit is that unlike a doskey alias, it works universally (windows explorer, browse dialog, etc.), not just when changing directories at the command prompt. It's especially helpful for old programs with old browse dialogs that have drive letters at the topmost level, rather than "desktop".
You can create a batch file called
And add it to your PATH variable (Start->[right-click on "Computer"]->Properties->"Advanced System Settings"[in left column]->"Environment Variables"
From there, just edit your PATH variable to include the folder containing your
Also, make sure your
When you need to use it, simply enter