General Commands

 

Type

Allows the user to see the contents of a file.

To edit the files, the user would need to use either edit or copy con.

Syntax

Displays the contents of text files.

TYPE [drive:][path]filename

 

Examples

type c:\autoexec.bat

This would allow you to look at the autoexec.bat

 

Date

The date command can be used to look at the current date of the computer as well as change the date to an alternate date.

Syntax

Displays or sets the date.

DATE [date]

Type DATE without parameters to display the current date setting and
a prompt for a new one.  Press ENTER to keep the same date.

Examples

date

Display the current date and prompt for a new one. If no date is entered, the current date will be kept.

 

Time

Allows the user to view and edit the computer’s time.

Syntax

Displays or sets the system time.

TIME [time]

Type TIME with no parameters to display the current time setting and a prompt
for a new one.  Press ENTER to keep the same time.

Examples

time 12:00

Set the time to 12:00

 

prompt

Allows you to change the MS-DOS prompt to display more or less information.

Syntax

Changes the Windows command prompt.

PROMPT [text]

text Specifies a new command prompt.

The prompt can be made up of normal characters and the below special codes:

$Q = (equal sign)

$$ $ (dollar sign)

$T Current time

$D Current date

$P Current drive and path

$V Windows version number

$N Current drive

$G > (greater-than sign)

$L & (less-than sign)

$B | (pipe)

$H Backspace (erases previous character)

Examples

prompt $t  $d$_$p$g

Display the time and the date above your prompt when in DOS

 

 

Registration


A password will be e-mailed to you.

Feedback Form

Name (required)

Email (required)

Feedback