AutoHotkey Community

It is currently May 25th, 2012, 11:55 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: February 8th, 2008, 1:29 am 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
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
   


Last edited by Fry on February 10th, 2008, 2:16 am, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 10th, 2008, 1:29 am 
Offline

Joined: February 10th, 2007, 5:18 am
Posts: 92
Well this no doubt is a good intention, but a few things i see.

1. It doesn't detect viruses, you need an outside anti virus program to give u the location of the file in order to delete it (if the anti virus program doesn't delete it itself)
2. Registry might be affected by viruses, your script doesn't account for that.
3. In your script, you don't start explorer back up
4. For the bat file, it would be smart to add the /R (force delete) option as well.

I don't mean to hassle you about the script, I'm just being objective; It's most definitely good intentioned and will solve a few problems some people have.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 10th, 2008, 2:14 am 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
Hey,

This wasnt to be a full antivirus program just to delete virus files

Also if you search for a virus in google it will probanbly tell your how to remove it "Manually"

and tell you where the files are to delete


As for the registry my script wont do that

Also the /R isnt a switch for the DEL command


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 10th, 2008, 7:50 pm 
Offline

Joined: February 10th, 2007, 5:18 am
Posts: 92
crap my bad, i had a bit of confusion, its /F

And like I said in my first post, you should update your script to start explorer at the end.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: XX0 and 5 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group