- Apr 25, 2015
- 135
1.Create a .txt file with this inside, then save as anything.bat (Make sure you enable all saving as any file type)
@echo off
del "%TEMP%\*.*" /s /f /q
for /d %%d in (%TEMP%\*) do rmdir "%%d" /s /q
del "%WINDIR%\TEMP\*.*" /s /f /q
for /d %%d in (%WINDIR%\TEMP\*) do rmdir "%%d" /s /q
pause
2. Hit windows key and r, type shell:starup, Drag and drop the bat inside
3. Profit from malware that infect the temp folder
* This will obviously not clean registry etc. It only helps to stop malware that extract to temp
Thanks for the help Nico!
@echo off
del "%TEMP%\*.*" /s /f /q
for /d %%d in (%TEMP%\*) do rmdir "%%d" /s /q
del "%WINDIR%\TEMP\*.*" /s /f /q
for /d %%d in (%WINDIR%\TEMP\*) do rmdir "%%d" /s /q
pause
2. Hit windows key and r, type shell:starup, Drag and drop the bat inside
3. Profit from malware that infect the temp folder
* This will obviously not clean registry etc. It only helps to stop malware that extract to temp
Thanks for the help Nico!
Last edited: