Category : Utilities for DOS and Windows Machines
Archive   : 4DOSBATS.ZIP
Filename : TRASH.BAT

 
Output of file : TRASH.BAT contained in archive : 4DOSBATS.ZIP
@echo off
REM
REM This displays the files moved by DELT tothe \TRASH directory and offers
REM the option to delete some or all of them. I CALL it at the end of my
REM AUTOEXEC.BAT to make sure the trash is regularly emptied.
REM
REM Usage: TRASH
REM
Echo.
IF NOT EXIST C:\TRASH\*.* GOTO END
dir /2OeCJP c:\trash
Echo.
BEEP
Inkey  Do you want to empty the trash? (Yes/No/Select): %%SURE
IF "%SURE"=="n" GOTO KEEP
IF "%SURE"=="y" GOTO KILL
attrib -hrs c:\trash\*.* >& NUL
select /Otr erase (c:\trash\*.*)
Echo.
Echo Trash sifted!
echo.
SET SURE=
QUIT
:KILL
attrib -hrs c:\trash\*.* >& NUL
Echo Y | erase c:\trash\*.* >& NUL
Echo.
Echo Trash emptied!
echo.
SET SURE=
QUIT
:KEEP
Echo.
Echo Trash not emptied!
echo.
SET SURE=
QUIT
:END
echo.
Echo Trash already empty!
echo.
SET SURE=


  3 Responses to “Category : Utilities for DOS and Windows Machines
Archive   : 4DOSBATS.ZIP
Filename : TRASH.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/