Short answer: Because DOS behaved this way, and cmd
tries to mimic DOS.
Originally, DOS had a ‘current director’ for each drive, so if you write cd d:\folder
you change the current directory for the D
drive.
You can read more about this here: http://blogs.msdn.com/b/oldnewthing/archive/2010/10/11/10073890.aspx
Related Posts:
- What does cmd /C mean?
- What does cmd /C mean?
- Create an empty file on the commandline in windows (like the linux touch command)
- How do I kill the process currently using a port on localhost in Windows?
- Command prompt won’t change directory to another drive
- ‘git’ is not recognized as an internal or external command
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- ‘git’ is not recognized as an internal or external command
- How can I open a cmd window in a specific location?
- Using multiple delimiters in awk
- Need to navigate to a folder in command prompt
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- How to run SQL script in MySQL?
- How can I pass an argument to a PowerShell script?
- The filename, directory name, or volume label syntax is incorrect inside batch
- javac not working in windows command prompt
- Command Prompt “Net View System Error 6118”
- Windows 7 Symbolic Link – Cannot create a file when that file already exists
- How do I test if Python is installed on Windows (10), and run an exe to install it if its not installed?
- Windows equivalent to UNIX pwd
- Command line for looking at specific port
- “rm -rf” equivalent for Windows?
- “rm -rf” equivalent for Windows?
- How do I make a python script executable?
- Run C++ in command prompt – Windows
- How to force `findstr` to ignore `Cannot open` returns
- How to edit a py file from terminal?
- How do you input command line arguments in IntelliJ IDEA?
- python is not recognized windows 10
- How can I find out if I have Xcode commandline tools installed?
- Python not working in the command line of git bash
- How to run PowerShell in CMD
- How to open an elevated cmd using command line for Windows?
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- Windows 7 – ‘make’ is not recognized as an internal or external command, operable program or batch file
- Ping with timestamp on Windows CLI
- ‘openssl’ is not recognized as internal or external command
- XCOPY: Overwrite all without prompt in BATCH
- What is the Windows equivalent of the diff command?
- How to grant permission to users for a directory using command line in Windows?
- Curl not recognized as an internal or external command, operable program or batch file
- Redirecting Output from within Batch file
- git undo all uncommitted or unsaved changes
- What is %0|%0 and how does it work?
- npm install multiple package names
- How does the echo command works in batch programming
- How to split large text file in windows?
- Aliases in Windows command prompt
- How do I use spaces in the Command Prompt?
- Install oAuth PECL error: Cannot install, php_dir for channel “pecl.php.net” is not writeable by the current user
- Calling dir in cmd prints out: “Volume in drive C has no label.”
- Difference between $? and $LastExitCode in PowerShell
- How to compile C program on command line using MinGW?
- how to empty recyclebin through command prompt?
- Changing all files’ extensions in a folder with one command on Windows
- WP Cli will not execute on Windows
- What exactly are DLL files, and how do they work?
- How to fix “VirtualBox Interface has active connections” error in Windows?
- How to fix “VirtualBox Interface has active connections” error in Windows?
- ‘pip’ is not recognized as an internal or external command
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- The application was unable to start correctly (0xc000007b)
- “No such file or directory” but it exists
- ‘python’ is not recognized as an internal or external command [duplicate]
- Why is “MINGW64” appearing on my Git bash?
- How can I update npm itself?
- outputting ascii table in C++
- Using %PROGRAMFILES(x86)% on Windows OS 32bit
- how to get program files x86 env variable?
- Difference between masm32 and masm?
- Can’t start Eclipse – Java was started but returned exit code=13
- Can’t start Eclipse – Java was started but returned exit code=13
- How do I start PowerShell from Windows Explorer?
- Error unable to access jarfile C:\Jar
- Tensorflow import error: No module named ‘tensorflow’
- Node.js version on the command line? (not the REPL)
- What is the reason for the error message “System cannot find the path specified”?
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- Unexplained crashes related to ntdll.dll
- How can I install pip on Windows?
- How to pretty print XML from the command line?
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- How to upgrade Git on Windows to the latest version
- PermissionError: [Errno 13] Permission denied
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- What does “@” mean in Windows batch scripts
- Permanently add a directory to PYTHONPATH?
- difference between command prompt and anaconda prompt
- What are good grep tools for Windows? [closed]
- How to run a PowerShell script
- How to run powershell script from .ps1 file?
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- bash: npm: command not found?
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- How to find which version of TensorFlow is installed in my system?
- Install an apk file from command prompt?
- How do I install and use cURL on Windows?
- Install an apk file from command prompt?
- Failed to write core dump. minidumps are not enabled by default on client version of windows