) is a Windows shell for NT through Vista and probably beyond. It will be obsoleted by PowerShell
, but it will unfortunately be around for a long time. This page exists to lessen the pain you experience when dealing with cmd.exe.
I highly suggest downloading everything in GNU Coreutils
to get much better text processing.
Best cmd.exe documentation?
- comment by prepending a line with
- prevent a line from being echoed by prepending
- turn off echoing:
- cmdline args:
popd to save/restore paths while
cd.. works just like
- `cd ` to go to the root
pushd \server\installs to access UNC paths
- prompt for value:
set /p my_variable=Enter a value, please:
- print variable:
is the same as