I'm relatively new to BAT file programming but experienced in another language...
With the compiler I'm using, it leaves me with 4-5 junk files that over a couple days of multiple versions..gets kinda extensive.
So I wrote this batch file:
@echo off
COLOR 0A
echo WHAT UP G33K??
set /p file_variable="WADDAH WE DO'IN HERE ... "
del /s "file_variable" \*.asv
del /s "file_variable" \*.sig
del /s "file_variable" \*.spz
pause
dir c:\windows
once this is opened, I drag the folder into the window & hit enter.
everything works ok, except for one thing...i only want the folders i specified to be cleared of such "junk files" and nothing else.
cuz it turns out one of my "junk" files..also happens to share a similar file extension with an important windows file....which has made me have to re-install a couple times. I removed the extension from this version (.sm2)...but if I can designate "ONLY this folder & any subfolders" i could resume the full clean...so to speak.
any input is greatly appreciated...thank you!