|
-
April 23rd, 2002, 03:06 AM
#7
Originally posted by Eeyore:
Try this with caution:
echo off
cls
dir *.bak /s >filelist.txt
dir *.old /s >>filelist.txt
type filelist.txt |more
choice /c:yn /n Delete files (Y)es! or (N)o!
if errorlevel 2 goto finished
If errorlevel 1 goto doit
:doit
del *.dll /s
del *.old /s
goto finished
:finished
choice /c:yn /n Delete filelist.txt (Y)es! or (N)o!
if errorlevel 2 goto end
If errorlevel 1 goto killit
:killit
del filelist.txt
goto end
:end
You can change the path and files to what you want. You can keep the filelist it creates if you want.
Eyeore, lucky that Vernon pointed out your version wouldn't work.
The highlighted command would have been a bit devastating on any system.
Sure would have cleared out a few files.
------------------
File it under X for X-perience.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|