Microsoft windows command line interface

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
7 replies · 4K views
medwatt
Messages
122
Reaction score
0
Hello,
In linux Konsol is very prevalent and its books are ubiquitous. Given that windows is the more popular of the two and being relatively easier a lot of us don't find much use let alone learn how to use windows console commands. I am looking for a website or a book which covers extensively windows console(cmd) and its command.
Thank you
 
Physics news on Phys.org
Just look for old DOS tutorials. That's what the Windows command line is, basically, just DOS.

It DOES have some new stuff that didn't exist in DOS but for the basics, learn DOS first, then move on to the newer Windows-based commands.
 
Microsoft command line reference for Windows XP and later versions of windows:

command_line_reference

Not mentioned is that ping can be used as a delay command, for example to get a 5 second delay in a batch file:

@rem delay for 5 seconds (set n to count + 1)
@ping 127.0.0.1 -n 6 >nul
 
There is also something called "windows powershell".
You could also consider installing cygwin which allows you to use standard unix shells like bash under windows.
 
At the Command Prompt type:

C:\>help

C:\>help | more
(displays output one screen at a time)

C:\>dir /?
(displays help for a given command)

C:\>net help
(network)

If you are going to do some extensive work I would recommend Take Command.

https://www.youtube.com/watch?v=IeAPFpFP3_k


https://www.youtube.com/watch?v=ifhWbFBm62Y
 
Last edited by a moderator:
As DrDu mentioned, take a look into PowerShell. It's the successor to Windows cmd.exe. Just to a search for essential or basic PowerShell commands and that should keep you entertained for a while.

It's a very powerful administration tool!
 
Windows Powershell is pretty much a full-featured programming language along the lines of Unix shells, and that is what people use for command-line automation on Windows networks.