---------------siwuxie095
in DOS, commands use the general form of the format
the form of expression in Chinese is:
[path] keyword [Drive letter] [path] file name [extension] (parameter) [parameter]
the notation is expressed in the form of:
[path] keyword [D:] [path] filename (EXT) [Parm]
Keywords are essential, such as dir in the dir command, Other items are optional and are selected as needed.
Drive letter, that is, the driver letter, such as A:B: c:d: e:f: etc., omit this parameter to select the default drive.
Path , separated by \ (backslash)
The drive letter and Path are joined together to form the full path. Write separately in the command format because in most cases, only the drive letter is used and no subdirectories are used
Path when placed in front of a keyword, indicates the path to which the external command file resides.
If this external command file is in the current path (that is, under the current subdirectory) or in another default directory set by the path command, [path] can be omitted
in DOS, a standard syntax format that represents command usage
Take the shutdown shutdown command as an example:
Shutdown Standard syntax format:
shutdown [/I |/L |/s |/////P | h |/e] [/f] [/M \\ComputerName] [/t XXX] [/d [P|u:] xx:yy [/C "comment"] ]
or:
shutdown [-i |-l |-S |-r |-P |-H |-E] [-f] [-M \\ComputerName] [-t XXX] [-D [P:] xx:yy-c "comment"]
- and / equivalence
the contents of the brackets [] are optional .
Brackets [] , in | delimited, indicating that several items that can be selected cannot be selected at the same time, only one or all are selected.
such as shutdown/s/A, execution is invalid.
Angle brackets <> indicates sub-parameters under optional parameters
Curly braces {} indicates that an item must be selected
Ellipsis ... represents the items that can be entered repeatedly
3: Brackets [] delimiter | ellipsis ... The actual use of the command is not used, only in the description of the command format is used
Parameter item: The parameter is usually composed of a slash/ + one letter, auxiliary command, some command can choose multiple parameter items
The command between the brackets and the brackets is out of order
such as shutdown/s/T 3600 and shutdown/t 3600/s
all represent 3,600 seconds (one hour) after shutting down the machine
input of special characters:
Open the CMD command-line window:
enter edit to open the editing window, press Ctrl+p (allow special characters to be entered), and press CTRL + other letters to enter
"made by siwuxie095"
The format of commands in DOS