Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement MaxDOS V6 system backup Viewer using batch processing

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces how to use batch processing to achieve MaxDOS V6 system backup viewer, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

The code is as follows:

@ echo off

: _ max

Mode con: cols=62 lines=23

Set bt=MaxDOS V 6 system backup Viewer.

Color f0

Title bt%

: _ m1

Cls

Echo.

Echo MaxDOS V6 system backup Viewer

Echo ══

Echo.

Echo 1. Open the directory where the backup image is stored

Echo 2. Delete existing mirror backup files

Echo 3. Delete the backup directory used to store the image

Echo 4. Make the directory used to store the image visible

Echo 5. Set the directory used to store images to be hidden

Echo 6. Turn off the anti-deletion protection of backup folder (MaxBAK)

Echo 7. Anti-deletion protection of opening backup folder (MaxBAK)

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 found one-click backup of the generated image using MaxDOS at% scd%:\% bf%.

Goto _ me

: _ ghoerr

Echo sorry, did not find the image generated by one-click backup using MaxDOS, please back up the system in time.

: _ me

Echo.

Echo generates an one-click backup of MaxDOS in order to prevent the image of the GHOST backup from being deleted by the virus

The echo image is named sysbak.max and is stored in the MaxBAK directory of the root directory of the partition.

Echo.

Set chi=

Set / p chi= Please select enter after operation:

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 anti-deletion protection of the backup folder (MaxBAK), press any key to return!

Pause > nul

Goto _ m1

: _ omd

If pd%==0 goto _ er1

@ md% pd%:\ MaxBAK\ NODEL..\ > nul

@ echo has turned on the anti-deletion protection of the backup folder (MaxBAK), 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

Does set / p yndel= really need to delete backup files? [y = Yes, n = No]:

If'% yndel%'=='' goto _ M1

If'% yndel%'=='y' del / f% scd%:\% bf%

If'% yndel%'=='n' goto _ M1

Echo deletion completed, 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 made the backup directory visible, 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, 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 deletion completed, press any key to return.

Pause > nul

Goto _ m1

: _ er1

Echo sorry no backup file or backup folder was found, this function is invalid, press any key to return!

Pause > nul

Goto _ m1

: exit

Thank you for reading this article carefully. I hope the article "how to use batch processing to implement MaxDOS V6 system backup Viewer" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report