|
CMD
Start a new CMD shell.
Syntax
CMD [charset] [options] [My_Command]
Options
/C Carries out My_Command and then terminates
/K Carries out My_Command but remains
My_Command : The NT command, program or batch script to
be run.
This can even be several commands separated
with '&&'(the whole should also be
surrounded by "quotes")
/T:fg Sets the foreground/background colours
/X Enable extensions to CMD.EXE
under Windows 2000 you can also use /E:ON
/Y Disable extensions to CMD.EXE
under Windows 2000 you can also use /E:OFF
/A Output ANSI Characters
/U Output UNICODE Characters
These 2 swiches are useful when piping or
redirecting to a file.
Most common text files under WinNT are ANSI, use
these switches when you need to convert the
character set.
You can use multiple commands separated by the command
separator && for string, but you must enclose them
in quotation marks (for example,
"command&&command&&command").
File and directory name completion is not enabled by
default. You can enable or disable file name completion for
a particular process of the CMD command with /f:{on|off}.
In a batch script CMD will start a new instance of CMD.exe
which will appear in the same window. The EXIT command will
close the second CMD instance and return to the previous
shell.
Cmd Commands
|