备份盘的回收
在回收了软盘空间的备份盘上,我们还应将空盘加上卷标名“空白盘”以示区别。为了备份盘的回收方便,我们可以将以上的所有过程都放在一个批处理文件DE.BAT中,只要在使用时加大(小)写参数A或B,即可回收A驱或B驱所插的欲回收的备份软盘的全部空白.??
E.@AT充分利用了DOS的重定向功能,整个执行过程完全由程序自动完成,不需手动,并且绝对不会误删硬盘上的文件。
以上程序在SUN486、HP386、GW386主机上实现,操作系统为DOS 3.3,汉字系统为CCDOS 2.13H。
@echo off rem *** 备份盘的回收 ***
if“%1”=“”goto:error
if“%1”=“a” goto:hs
if“%1”=“A” goto:hs
if“%1”=“b” goto:hs
if“%1”=“B” goto:hs
goto:end
:hs
echo y>temp1.$$$
echo n>temp2.$$$
attrib -r %1:*.*
type temp1.$$$ 1del%1:*.*>nul
label%1:空白盘
type temp2.$$$ 1chkdsk %1>nul
dir %1:/w
del temp1.$$$
del temp2.$$$
goto:end
:error
echo驱动器名参数(A或B)未输入,请重来!
:end