Prompt: Setting up a prompt
[Applicable occasions] when you're tired of the c:\> prompts or if you want to make your prompts unique, you can try a very interesting DOS command that shows time and date at any moment.
[Usage]prompt $p $g The current directory name and > number as the prompt, which is the most commonly used prompt
Prompt $t represents the time prompt $d represents the date
Prompt $$ represents $ prompt $q =
Prompt $v represents the current version prompt $l representation <
Prompt $b said | Prompt $h represents the abdication character
The prompt $e represents the character prompt the ESC represents $_ the carriage return line change
[Example]c:\dos>prompt wang$g will wang> as a prompt
Wang>prompt $t $d$g Use the time, date, and > number as a prompt
0:01:07.77thu 08-29-1996>prompt $p $g
C:\dos>
Restore: Recovering backed up files
[Recommended] If you have previously made a file backup with backup, you can use it to recover files if the original file is corrupted.
The files on the disk backed up with the backup command are restored to another disk with the two files backup.00x and control.00x on the backup disk.
[Usage]restore [Backup letter] [Destination letter]
Restore the backup file on the backup disk to the specified disk
RESTORE/S restores the backup file including subdirectories to the specified disk
Restore/p lets users determine whether to recover files
Restore/b: Files prior to date recovery date
restore/a: Files After date recovery date
RESTORE/L: Files prior to time recovery time
restore/e: Files After time recovery time
Restore/m only restores files that have been modified since the last backup
restore/n only recovered files that have been deleted since the last backup
RESTORE/D only displays the file name to be recovered
Example
C:\dos>restore A:C:
Insert backup diskette in drive A:
Press any key to continue ...
In a drive to put the first backup disk, press any key can be restored after the first, in order to put the other disk can be.
When you do not recover the file correctly with the above command, use:
C:\dos>restore A:c:\/S