Maxdos V6 System Backup viewer batch code _dos/bat

Source: Internet
Author: User
Tags echo 7 goto
Copy Code code as follows:

@echo off
: _max
Mode con:cols=62 lines=23
Set Bt=maxdos V6 system Backup viewer. Maise Studio Http://Pzz.Cn
Color F0
Title%bt%

: _m1
Cls
Echo.
echo Maxdos V6 System Backup Viewer
Echo═════════════════════════════
Echo.
Echo 1, open the directory that holds the backup mirror
Echo 2, delete a mirrored backup file that already exists
Echo 3, removing the backup directory for mirroring
Echo 4, set the directory to be visible for the image to be stored
Echo 5, set the directory to be used for mirroring as hidden
Echo 6, turn off protection against deletion of backup folders (Maxbak)
Echo 7, open backup folder (Maxbak) Anti-deletion protection
Echo.
Echo═════════════════════════════
Set Pd=0
For%%m in (J I h G F e D) do if exist%%m:\maxbak set pd=%%m
Set Bf=maxbak\sysbak.max
Set Scd=0
For%%i in (J I h G F e D) do if exist%%i:\%bf% set scd=%%i
If%scd%==0 goto _ghoerr
echo in%scd%:\%bf% found a mirrored image that was generated using the Maxdos one-button backup.
Goto _me
: _ghoerr
echo Sorry, no mirror was found using the Maxdos one-button backup, please back up the system in time.
: _me
Echo.
echo in order to avoid ghost backup of the image of the virus is deleted so maxdos a key backup generated
The echo image is saved as a Sysbak.max name and is stored in the Maxbak directory of the partition's root directory.
Echo.
Set chi=
set/p chi= Please select the operation to return to:

If '%chi% ' = = ' goto _M1
if/i '%chi% ' = = ' 1 ' goto _OP
if/i '%chi% ' = = ' 2 ' goto _DBAKF
if/i '%chi% ' = = ' 3 ' goto _rdbak
if/i '%chi% ' = = ' 4 ' goto _atton
if/i '%chi% ' = = ' 5 ' goto _attof
if/i '%chi% ' = = ' 6 ' goto _CLD
if/i '%chi% ' = = ' 7 ' goto _OMD
Goto _M1

: _CLD
If%pd%==0 goto _er1
@rd/S/q%pd%:\maxbak\nodel. \ >nul
@echo has turned off the backup folder (Maxbak) protection against deletion, press any key to return!
Pause >nul
Goto _M1

: _OMD
If%pd%==0 goto _er1
@md%pd%:\maxbak\nodel. \ >nul
@echo has opened the backup folder (Maxbak) of the anti-delete protection, press any key to return!
Pause >nul
Goto _M1

: _op
If%pd%==0 goto _er1
Start%pd%:\maxbak
Goto _M1

: _DBAKF
If%scd%==0 goto _er1
set/p yndel= Do you need to really delete the backup files? [Y= is n= No]:
If '%yndel% ' = = ' goto _M1
If '%yndel% ' = = ' y ' del/f%scd%:\%bf%
If '%yndel% ' = = ' n ' goto _M1
echo Delete complete, press any key to return.
Pause >nul
Goto _M1

: _atton
If%pd%==0 goto _er1
For%%k in (d:e: f:g:) do if exist%%k\maxbak\nul attrib-s-r-h%%k\maxbak
ECHO has set the backup directory to visible and press any key to return.
Pause >nul
Goto _M1

: _attof
If%pd%==0 goto _er1
For%%j in (d:e: f:g:) do if exist%%j\maxbak\nul attrib +s +r +h%%j\maxbak
ECHO has set all backup directories to be hidden and press any key to return.
Pause >nul
Goto _M1

: _rdbak
If%pd%==0 goto _er1
For%%l in (d:e: f:g:) do if exist%%l\maxbak\nul Rd%%L\MAXBAK/S/q >nul
echo Delete complete, press any key to return.
Pause >nul
Goto _M1

: _er1
echo Sorry no backup files or backup folders found, this feature fails, press any key to return!
Pause >nul
Goto _M1

: Exit

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.