DOS prompt, restore command usage instructions

Source: Internet
Author: User
Tags time and date backup

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.