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
- Error unable to access jarfile C:\Jar
- Unexplained crashes related to ntdll.dll
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- Install an apk file from command prompt?
- How to run a PowerShell script
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- ‘pip3’ is not recognized as an internal or external command, operable program or batch file
- git clone: Authentication failed for
- How can I generate a list of files with their absolute path in Linux?
- Command ‘ls’ not working in command prompt
- openssh windows bad owner or permissions
- Diff command along with Grep gives “Binary file (standard input) matches”
- Moving file using cmd?
- What is the ASCII Code of ½?
- Docker for Windows error: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”
- Why Local Users and Groups is missing in Computer Management on Windows 10 Home?
- JAVA_HOME should point to a JDK not a JRE
- cat not recognised as an internal or external command
- How to send a simple email from a Windows batch file?
- ImportError: cannot import name NUMPY_MKL
- How can I do GUI programming in C?
- What does /p mean in set /p?
- How to delete a file after checking whether it exists
- Python official installer missing python27.dll
- What is the source of the data for the ProgramFiles, ProgramW6432Dir, ProgramFilesDir (x86), CommonProgramFiles environment variables?
- ‘ssh’ is not recognized as an internal or external command
- Gem installation error: You have to install development tools first
- Change directory command in Docker?
- Desktop: The system cannot find the specified path
- Delete .DS_STORE files in current folder and all subfolders from command line on Mac
- You require permission from “Myself” to delete folder – how to fix
- Is it possible to export WordPress from command line?
- When attempting to update a self-hosted WordPress site, I’m seeing “ASN1 unknown message digest algorithm”
- How do I pass an array as an argument to a WP-CLI command?
- Trying to install WordPress on WSL Windows 10, and running into issues with wp-cli and “wp db create”
- How to determine wordpress base path when wordpress core is not loaded
- Windows 7 download WordPress and load into LAMP stack and configure
- Error updating WP-CLI
- strange behaviour with “rin” in brand new installation of 4.6.1 [closed]
- Bulk update published posts date randomly using wp-cli?
- Windows-hosted new site shows no preview: “Future home of something quite cool.” message is displayed
- Avoid ‘uploads’ 777 permissions: Potential threat or clean solution?
- Problems with ‘require (./xxx)’ on IIS7.5
- How can I tell what version of IIS is installed?