Jump to content

Recommended Posts

Posted

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]

Posted

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

  • Moderators
Posted

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.

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.

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...