Cmd Command In Windows Server 2008
In this article I am going to explain about Cmd command in Windows Server 2008 operating system and also explain it's related syntax.
Introduction
Cmd is Windows server 2008 command line tool and also available in Windows 7, Windows Vista and Windows XP. Cmd command starts the new instance of command Windows command shell, cmd.exe. Basic syntax for using Cmd command given below.
Cmd command syntax
cmd [/c|/k] [/s] [/q] [/d] [/a|/u] [/t:{<B><T>|<T>}] [/e: {on |off}] [/f: {on |off}] [/v: {on |off}] [<String>]
|
In above syntax
Parameters of Cmd command |
Description |
/c |
Performs the command specified by string and then terminates. |
/k |
Performs the command specified by string and get on with it. |
/s |
Modifies the treatment of String after /c or/k. |
/q |
Turns the echo off. |
/d |
Disables execution of Auto Run commands. |
/a |
Formats the output of internal command to pipe or a file to be ANSI (American National Standard Institute). |
/u |
Formats the output of internal command to a pipe or a file to be Unicode. |
/t:{<B><T>|<T>} |
Sets the background (B) and text (T) colors. |
/e: {on|off} |
Enables or Disables the command extensions. |
/f: {on|off} |
Enables or Disables the file and directory name completion. |
/v: {on|off} |
Enables or Disables the environment variable expansion |
<String> |
Specify the command you want to carry out. |
Note- For <String>, you can use multiple commands but use command separator && between multiple commands and enclose them in inverted commas "".
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here