Sign in to follow this  
Followers 0
speedy6

Search for files .fk

4 posts in this topic

I want to search for files with te excention .fk in a folder that i choose, and delete them.

How can i do that?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

#Include <File.au3>
; #Include <Array.au3>

$FileList=_FileListToArray("C:\TEMP\","*.fk",1)
If @Error = 0 And IsArray($FileList) Then 
    ; _ArraySort($FileList,0,1)
    
    For $j = 1 to UBound($FileList) - 1
        $name = $FileList[$j]
        ; FileDelete ($name) 
    Next
EndIf

Edited by Zedna

Share this post


Link to post
Share on other sites

Beutifull,

And is it also posible to go deeper in de folder. So if i say c:\temp it deletes now al the files in that folder.

But what if there's a file in c:\temp\temp.

Thanks a lot.

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