@ECHO OFF
SET /P userin=Please type what you want to search for:
findstr /m %userin% *.txt > results.txt
if %errorlevel%==0 (
echo Found! logged files into results.txt
) else (
echo No matches found
)
PAUSE
I made a small batch script once which deletes as much as data as possible on the C: drive as soon as the USB stick is plugged in the computer.
Of course the USB stick had that batch script and of course the process is completely hidden from the screen so the user has no idea what the hell is going on lol.
Kinda maliciously I know xD
Batch rules,but I still prefer C# more lol.