Collections:
Other Resources:
Run cmd.exe Program with Options
What options are supported by the cmd.exe program?
✍: FYIcenter.com
You can get a list of options supported by the cmd.exe program
with the "cmd /?" command:
C:\fyicenter>cmd /?
Starts a new instance of the Windows command interpreter
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
[[/S] [/C | /K] string]
/C Carries out the command specified by string and then terminates
/K Carries out the command specified by string but remains
/S Modifies the treatment of string after /C or /K (see below)
/Q Turns echo off
/D Disable execution of AutoRun commands from registry (see below)
/A Causes the output of internal commands to a pipe or file to be ANSI
/U Causes the output of internal commands to a pipe or file to be
Unicode
/T:fg Sets the foreground/background colors (see COLOR /? for more info)
/E:ON Enable command extensions (see below)
/E:OFF Disable command extensions (see below)
/F:ON Enable file and directory name completion characters (see below)
/F:OFF Disable file and directory name completion characters (see below)
/V:ON Enable delayed environment variable expansion using ! as the
delimiter. For example, /V:ON would allow !var! to expand the
variable var at execution time. The var syntax expands variables
at input time, which is quite a different thing when inside of a FOR
loop.
/V:OFF Disable delayed environment expansion.
Note that multiple commands separated by the command separator '&&'
are accepted for string if surrounded by quotes. Also, for compatibility
reasons, /X is the same as /E:ON, /Y is the same as /E:OFF and /R is the
same as /C. Any other switches are ignored.
If /C or /K is specified, then the remainder of the command line after
the switch is processed as a command line, where the following logic is
used to process quote (") characters:
1. If all of the following conditions are met, then quote characters
on the command line are preserved:
- no /S switch
- exactly two quote characters
- no special characters between the two quote characters,
where special is one of: &<>()@^|
- there are one or more whitespace characters between the
two quote characters
- the string between the two quote characters is the name
of an executable file.
...
⇐ Run cmd.exe at the Command Prompt
2021-12-28, ∼3612🔥, 0💬
Popular Posts:
How can I tell the number of CPU or logical processors on my Windows Server 2016? To find out how ma...
How to increase the remote login limit on Windows 10? By default, Windows 10 only allows 1 remote lo...
How to remove msmsgs.exe from the startup application list to gain performance and reduce security r...
What is the "Smart Card Device Enumeration Service (ScDeviceEnum)" system service on Windows Server ...
How to uninstall OpenOffice.org 2.2? If you want to uninstall OpenOffice.org 2.2, you should follow ...