Jump to content

Program to search for .jpg, .avi, .mov


Klexen
 Share

Recommended Posts

Ok, so my friend sent some nude pictures and videos to a girl, who is now black mailing her and threatening to post them on the internet. I told her I would find or write a program for her to search for any jpg, mov, or avi file on her computer and delete them. It's really important to her, and I told her I would see what I could do to help.

I'm sure I could figure it out, but if someone already has something like that, or can do it quickly and hook me up, I would really appreciate it. I would just do it myself, but time is a factor. And I want to make sure it works.

Edited by Klexen
Link to comment
Share on other sites

You could use this little function I wrote sort of like this. And use it recursively.

Func _DeleteAllFiles($SourceDir=@DesktopDir, $Filter=".exe")
$Array=_FileListToArray($SourceDir)
$Length=StringLen($Filter)
For $i=1 To $Array[0]
    if StringRight($Array[$i], $Length) = $Filter Then FileRecycle($SourceDir&"\"&$Array[$i])
Next
EndFunc
Link to comment
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
 Share

  • Recently Browsing   0 members

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