Sign in to follow this  
Followers 0
slayerz

How to make a script that will delete any new created file?

6 posts in this topic

did anyone know how to make a script that will delete the newly-created files?

i'm asking this bcoz worm & spyware alwiz copy themselves in my pendrive each time i use it at cyber cafe.

so that, i hope with autoit, i can delete that file with juz click on that exe


AUTOIT[sup] I'm lovin' it![/sup]

Share this post


Link to post
Share on other sites



did anyone know how to make a script that will delete the newly-created files?

i'm asking this bcoz worm & spyware alwiz copy themselves in my pendrive each time i use it at cyber cafe.

so that, i hope with autoit, i can delete that file with juz click on that exe

i don't understand exactlly what you want but use FileGetTime function :

http://www.autoitscript.com/autoit3/docs/f...FileGetTime.htm

Share this post


Link to post
Share on other sites

i don't understand exactlly what you want but use FileGetTime function :

http://www.autoitscript.com/autoit3/docs/f...FileGetTime.htm

i juz want to know the script that can delete new file entered my pendrive, i.e worms or spyware. so, with juz click on my compiled-script, i can eliminate them all.

or is there any way to delete any files that is not in our list?


AUTOIT[sup] I'm lovin' it![/sup]

Share this post


Link to post
Share on other sites

i juz want to know the script that can delete new file entered my pendrive, i.e worms or spyware. so, with juz click on my compiled-script, i can eliminate them all.

or is there any way to delete any files that is not in our list?

How about dropping the 10 year old ebonics and speak proper english if you want help.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

You could:

1) Have a look at _FileListToArrayEx.

2) Use it to get an array of your files on your drive.

3) Get an array of this drive if you're finished

4) Compare the array wirh the old one and delete new files.

Share this post


Link to post
Share on other sites

How about dropping the 10 year old ebonics and speak proper english if you want help.

Nicely said.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0