I'm trying to use the command prompt to move some files,
I am used to the linux terminal where I use ~
to specify the my home directory
I've looked everywhere but I couldn't seem to find it for windows command prompt (Documents and Settings\[user]
)
The alternative for ~ (user’s home directory) on Windows command prompt
commandcommand-prompthome-directory
Related Topic
- C++ – How to find the user’s home dir in a cross platform manner, using C++
- Python – How to find the real user home directory using python
- Python – the correct cross-platform way to get the home directory in Python
- C# – Install a Windows service using a Windows command prompt
- Command prompt won’t change directory to another drive
- Windows – how to change directory using Windows command line
- Windows – Aliases in Windows command prompt
Best Answer
You're going to be disappointed:
%userprofile%
You can use other terminals, though. Powershell, which I believe you can get on XP and later (and comes preinstalled with Win7), allows you to use
~
for home directory.