Command Prompt (cmd.exe)
The cmd.exe shell processes the legacy command set that has been part of Windows since its earliest versions.
- can also run legacy commands in PowerShell prompt
- Run as administrator to run commands with elevated privileges
- the default folder is in
C:\Windows\System32rather thanC:\Users\Username
- the default folder is in
Command Syntax
- command name + switches + arguments
- switches are preceded by forward slash
/ clsclears the screen- some commands use interactive mode
- E.g.,
nslookuportelnet - using the command starts the program
exitorquitorCTRL+Cto exit
- E.g.,
Getting Help
helpshows a list of commandshelp 'command'lists the syntax and switches of a command- alt:
'command' /?displays help screen
- alt: