cmd

Windows CMD · Terminal · available in the simulator

What it does

Starts a new instance of the command interpreter.

Syntax

cmd [/c | /k] [/q] [/v:on|off] [cadena]

Options and parameters

  • /c CMD

    executes the command and terminates

  • /k CMD

    executes the command and remains open

  • /C

    Carries out the specified command and then terminates.

    cmd /c dir
  • /K

    Carries out the specified command and remains open.

    cmd /k echo Hola
  • /S

    Modifies the treatment of the string after /C or /K.

  • /Q

    Turns command echo off.

  • /D

    Disables execution of AutoRun commands from the registry.

  • /A

    Outputs internal commands to a pipe or file as ANSI.

  • /U

    Outputs internal commands to a pipe or file as Unicode.

  • /T

    Sets foreground and background colors.

  • /E

    Enables or disables command extensions.

  • /F

    Enables or disables file and directory name completion.

  • /V

    Enables or disables delayed environment variable expansion.

Usage examples

  • cmd
  • cmd /c dir
  • cmd /k dir
  • cmd /k echo Hola
Practise cmd

Related commands