Cmd

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Lumumba

Cmd

Post by Lumumba » Sat Sep 27, 2003 11:32 pm

Starts a new instance of the command interpreter, Cmd.exe. Used without parameters, cmd displays the version and copyright information of the operating system.

Syntax[

cmd [{/c | /k}] [/s] [/q] [/d] [{/a | /u}] [/t:FG] [/e:{on | off}] [/f:{on | off}] [/v:{on | off}] [String]

Parameters

/c Carries out the command specified by String and then stops.
/k Carries out the command specified by String and continues.
/s Modifies the treatment of String after /c or /k.
/q Turns the echo off.
/d Disables execution of AutoRun commands.
/a Formats internal command output to a pipe or a file as American National Standards Institute (ANSI).

/u Formats internal command output to a pipe or a file as Unicode.
/t:FG Sets the foreground F and background G colors. The following tables lists valid hexadecimal digits that you can use as the values for F and G.

Value Color

0 Black
1 Blue
2 Green
3 Aqua
4 Red
5 Purple
6 Yellow
7 White
8 Gray
9 Light blue
A Light green
B Light aqua
C Light red
D Light purple
E Light yellow
F Bright white

/e:on Enables command extensions.
/e:off Disables commands extensions.
/f:on Enables file and directory name completion.
/f:off Disables file and directory name completion.
/v:on Enables delayed environment variable expansion.
/v:off Disables delayed environment variable expansion.

String Specifies the command you want to carry out.

/? Displays help at the command prompt.

more ...

Lumumba

Post by Lumumba » Sat Sep 27, 2003 11:37 pm

OOps - Smileys :roll: , but it should have been looked like this ...

Code: Select all

/e:on Enables command extensions. 
/e:off Disables commands extensions. 
/f:on Enables file and directory name completion. 
/f:off Disables file and directory name completion. 
/v:on Enables delayed environment variable expansion. 
/v:off Disables delayed environment variable expansion.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts