Jump to content

Recommended Posts

Posted

hello there! Is it possible for me to search only the file extensions in my directory? Say in my Desktop, I want to search for files having ".zip" extensions. How will I do it? 
FileExists needs the file name so I wont be able to use it. Any idea? :D

Posted

I see Thank you for that. I searched about FileFindSearchFile function. I think I can also use this one. Thank you very much :)

Posted (edited)
Quote

hello there! Is it possible for me to search only the file extensions in my directory? Say in my Desktop, I want to search for files having ".zip" extensions.

#include <File.au3>
#include <Array.au3>

Local $FileList = _FileListToArray(@DesktopDir, "*.zip")

If Not @error Then
    _ArrayDisplay($FileList, "Zip Files")
Else
    MsgBox(4096, "", "No Files Found.")
    Exit
EndIf

 

Edited by Belini

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
×
×
  • Create New...