home *** CD-ROM | disk | FTP | other *** search
- @echo off
- iff "%1"=="" then
- echo Usage : DELALL [drive:][path]directory
- quit
- endiff
- iff isdir %1 then goto QUESTION
- else
- echo The directory "%1" does not exist!
- echo DELALL aborted!
- quit
- endiff
-
- :QUESTION
- input Delete directory "%1" and its subdirectories? [ny] %%choice
- iff "%choice"=="y" then goto REMOVE
- else
- echo DELALL aborted!
- quit
- endiff
-
- :REMOVE
- echo Deleting %1...
- del /qsxyz %1 >& nul
- quit
-