This script was made to get rid of Virus Files
You can manually remove virus
Files with this
It first just trys to plain delete the file. if it cant it tries to delete by the recycle bin. if that doesnt work it has its Last Line Of Defense
In that case it Stops Explorer.exe then use batch file to delete it then starts explorer
INSTRUCTIONS
Compile the script and then drag and dropthe Infected file on it it will be deleted
Heres the script
Code:
FileSetAttrib, -RASHNOT, %1%
FileDelete, %1%
If Errorlevel = 1
gosub NextLOD
return
NextLOD:
FileRecycle, %1%
If Errorlevel = 1
Gosub FailSafe
Else
FileRecycleEmpty
return
FailSafe:
Process,Close,explorer.exe
LLOD =
(
DEL /Q /F "%1%"
ERASE /Q /F "%1%"
)
FileAppend, %LLOD%,temp.bat
runwait, temp.bat
filedelete, temp.bat
msgbox, File Delete
return