Command Prompt for Windows

Command Syntax

Consider the following command syntax :-

NAME [drive:][path][filename] [...] [ON | OFF] variables /ABC

Words in blue upper case letters are keywords, and must be entered to specify the command.

Words and characters in magenta make up the rest of the command line. Usually referred to as the command line tail. Lower case words represent variables.

The variable drive: specifies the disk drive. For example A:, B: or C: etc.

The variable path specifies either a relative or absolute path name. An absolute path name has the path fully qualified (eg: \WINDOWS\SYSTSM32), where a relative path name does not and generally includes the use of dot characters to specify the parent directory (eg. ..\WINDOWS\SYSTEM32)

The variable filename specifies a file name. A file name can either conform to the 8.3 naming convention or be a long file name. When a file name contains one or more space characters then the complete drive, path and file name must be enclosed in quote character, regardless of whether the file name conforms to 8.3 or long file names. For example :-


Words or letters in square brackets ( ie. ' [ ' and ' ] ' ) represent optional parameters and they do not need to be specified to execute the command. Generally these optional parameters change the behaviour of the command.

Three dots ( ie. ' ... ' ) suggests that additional parameters are allowed be not necessary.

Words of letters separated by a vertical bar ( ie. ' | ' ) represents one selection from a list.

A group of letters preceded by a front slash ( ie. ' / ' ) specifies one or more switches . Switches represent command options that can be specified. Generally command switches will provide extra functionality for a command.