home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR3
/
FFG153.ZIP
/
DEMOBAT.ZIP
/
DELALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-06-25
|
1KB
|
38 lines
@echo off
if %1.==. goto USAGE:
cls
echo Searching for files to select for deletion...
ffg>del$tmp$.bat /fs! /fb1pf.e %1 %2 %3 %4 %5 %6 %7 %8 %9
cls
echo Next you can edit out any lines with names of files you don't want deleted.
pause
ted del$tmp$.bat
if exist del$tmp$.bak del del$tmp$.bak
cls
echo Press ^C to abort without deleting any files.
echo Otherwise to begin deleting files
pause
echo on
@call del$tmp$ del
@echo off
del del$tmp$.bat
goto END
:USAGE
cls
echo USAGE: %0 d:
echo.
echo Where d: is a list of drives to clean up.
echo.
echo EXAMPLE: %0 CDE:*.[bak,tmp]
echo.
echo Deletes *.bak and *.tmp files from drives C:, D:, E:
echo.
echo "%0" deletes specified files from the specified disk(s). You are
echo given an opportunity to override the delete operation for specific files
echo or can abort the entire operation.
pause
:END
@echo off
echo Done. Press any key for next demonstration...
pause>nul