bowker Posted July 24, 2018 Posted July 24, 2018 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?
badcoder123 Posted July 24, 2018 Posted July 24, 2018 (edited) *.zip will show everything that's .zip Edited July 24, 2018 by badcoder123
FrancescoDiMuro Posted July 24, 2018 Posted July 24, 2018 @bowker Take a look in the Help file about the _FileListToArray() function Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
bowker Posted July 24, 2018 Author Posted July 24, 2018 I see Thank you for that. I searched about FileFindSearchFile function. I think I can also use this one. Thank you very much
Belini Posted July 24, 2018 Posted July 24, 2018 (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 July 24, 2018 by Belini My Codes: Virtual Key Code UDF: http://www.autoitscript.com/forum/topic/138246-virtual-key-code-udf/ GuiSplashTextOn.au3: http://www.autoitscript.com/forum/topic/143542-guisplashtexton-udf/ Menu versions of Autoit: http://www.autoitscript.com/forum/topic/137435-menu-versions-of-autoit/#entry962011 Selects first folder of letters: ]http://www.autoitscript.com/forum/topic/144780-select-folders-by-letter/#entry1021708/spoiler] List files and folders with long addresses.: http://www.autoitscript.com/forum/topic/144910-list-files-and-folders-with-long-addresses/#entry102 2926 Program JUKEBOX made in Autoit:some functions:http://www.youtube.com/watch?v=WJ2tC2fD5Qs Navigation to search:http://www.youtube.com/watch?v=lblwOFIbgtQ
bowker Posted July 25, 2018 Author Posted July 25, 2018 @BeliniThank you for this! Really appreciate it
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now