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, ∼3548🔥, 0💬
Popular Posts:
How to view services with the System Configuration tool "msconfig.exe" on Windows 7? System Configur...
How to use "query user" to find out who is logged in to my Windows 7 computer? If you allow remote l...
How to publish HTML documents to your local Apache server? If you followed our Apache server install...
How to uninstall ActivePerl 5.8.8.820? If for some reason you want to uninstall ActivePerl from your...
What are the commonly used background processes on Windows systems? - Part II Continue from Part I ....