Prompt, restore command usage instructions _dos/bat

Source: Internet
Author: User
Tags time and date
Prompt setup Prompt

[Where applicable] when you're tired of c:\> prompts or if you want to make your prompts unique, you can
Try it, very interesting DOS commands that can be displayed at any time and date.

[usage] prompt $p $g The current directory name and the > 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 restores a backed-up file

[Recommended] If you have previously made a file backup with backup, you can use it to recover when the original file is corrupted
File.

Restore the files from the disk backed up with the backup command to another disk, on the backup disk
These two documents should be backup.00x and control.00x.

[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, press Shun
Order into the other disk.

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.