You need standard wildcard definitions, so you must use:
'*.exe;*.msi;*.scr;*.dll;*.cpl;*.ax'
M23
Posted 12 June 2011 - 06:46 AM
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
Posted 16 June 2011 - 08:08 PM
_RecFileListToArray ("Path", "Include List", "Return", Recursion, Sort, Return Path, "Exclude List", "Exclude List Folder") Lists files and\or folders in specified path with optional recursion to defined level and result sorting (required: #include <_RecFileListToArray.au3>
Posted 17 June 2011 - 09:17 PM
Posted 17 June 2011 - 09:36 PM
Often wondered how you make them, but never looked into it.Melba23, I just found your UDF and I like it. I like it so much, I want to make it part of my #include folder. However, you didn't offer a calltip, so I wrote one (I don't believe in just asking for everything handed to me, so I researched how to create one and insert it in Scite).
If you want to improve upon it, please do so:_RecFileListToArray ("Path", "Include List", "Return", Recursion, Sort, Return Path, "Exclude List", "Exclude List Folder") Lists files and\or folders in specified path with optional recursion to defined level and result sorting (required: #include <_RecFileListToArray.au3>
_RecFileListToArray ("Path", "[Include List]", "[Return]", "[Recursion]", "[Sort]", "[Return Path]", "[Exclude List]", "[Exclude List Folder]") Lists files and\or folders in specified path with optional recursion to defined level and result sorting (required: #include <_RecFileListToArray.au3>
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)
Posted 17 June 2011 - 11:01 PM
API file/line's I presume. ... Preferably automatically. (<funcName>'('<param text>')'[<funcRemark>]<NL>)Often wondered how you make them, but never looked into it.
Posted 18 June 2011 - 02:50 PM
; _RecFileListToArray($sPath[, $sInclude_List = "*"[, $iReturn = 0[, $fRecur = 0[, $fSort = 0[, $sReturnPath = 1[, $sExclude_List = ""]]]]]]) Lists files and\or folders in a specified path with optional recursion and sort. (Requires: #include <RecFileListToArray.au3>) ;
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
Posted 30 August 2011 - 01:57 PM
Longer than what?1. Multiple function call takes longer
Have you tried? I add the \z end-of-string parameter to the mask SRE to make sure that it does not.2. Mask *.doc will include *.docx
Edited by Melba23, 30 August 2011 - 05:21 PM.
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
Posted 30 August 2011 - 05:53 PM
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
Posted 30 August 2011 - 07:30 PM
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
Posted 30 August 2011 - 07:41 PM
Luckily I'm sure most of us saw the posts that were here before, so you can rest easy that most of us don't think you're overly batty.All,
Please note that I am not talking to myself here - AZJIO has deleted the posts made earlier today to which I was replying.
M23
How to ask questions the smart way!
Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.
Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.
_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.
GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.
Posted 30 August 2011 - 07:42 PM
Just lightly touched, eh!overly batty
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
Posted 31 August 2011 - 12:15 AM
Removed a post that gave false information. Random coincidence of circumstances, initially could not use the mask. Conclusions made on the basis of AutoIt.chm.And I am not at all happy that you post incorrect information such as "Mask *.doc will include *.docx" when a simple test shows it does not.
Posted 11 October 2011 - 08:35 PM
#include <RecFileListToArray.au3> #include <array.au3> Local Const $DirGlob = "C:\Test" Local Const $SubDir1 = "C:\Test\Bob1" Local Const $SubDir2 = "C:\Test\Bob1\plop" Local Const $SubDir3 = "C:\Test\Bob1\plop1" Local Const $FileName = "MyFile.Txt" Local $I, $nFile ; I create some folders to test UDF For $I = 0 to 15 If Not FileExists($DirGlob & "\Bob" & $I) Then DirCreate($DirGlob & "\Bob" & $I) Next ;I create subfolders who contain a text file i want to retreive If Not FileExists($SubDir1) Then DirCreate($SubDir1) If Not FileExists($SubDir2) Then DirCreate($SubDir2) If Not FileExists($SubDir3) Then DirCreate($SubDir3) ;I create the same file in the tree subfolders $nFile = FileOpen($SubDir1 & "\" & $FileName, 2) FileClose($nFile) $nFile = FileOpen($SubDir2 & "\" & $FileName, 2) FileClose($nFile) $nFile = FileOpen($SubDir3 & "\" & $FileName, 2) FileClose($nFile) ; 1/ MyFile.Txt in Bob1 and subfolders (Recursive + NoOrder + RelativePath) (OK it's good) Local $Array1 = _RecFileListToArray($SubDir1, $FileName, 1, 1, 0, 1) If IsArray($Array1) Then _ArrayDisplay($Array1, "Array1") ; 2/ I want to find MyFile.Txt in C:\Test ; I want to retreive the folder's Name where MyFile.txt exists (Recursive + NoOrder + FullPath) Local $Array2 = _RecFileListToArray($DirGlob, $FileName, 2, 1, 0, 1) if IsArray($Array2) Then _ArrayDisplay($Array2, "Array2") ; 3/ I want to find MyFile.Txt in C:\Test (Recursive + NoOrder + FullPath) ; I retriver all Folders and Files ! Local $Array3 = _RecFileListToArray($DirGlob, $FileName, 0, 1, 0, 1) if IsArray($Array3) Then _ArrayDisplay($Array3, "Array3") ; I delete test environment DirRemove($DirGlob, 1)
Posted 12 October 2011 - 02:43 AM
Posted 12 October 2011 - 10:11 AM
#include "RecFileListToArray.au3" Dim $aFile,$FileName,$Test="C:\Test\" $FileName="Nuovo Documento di [testo.txt" $aFile=_RecFileListToArray($Test,$FileName, 1,1,0,1,"","") If @error=1 Then MsgBox(0,"Error","@Error:"&@error&@CR&"@Extended:"&@extended) Else MsgBox(0,"OK",$aFile[1]) EndIf
Edited by Massi, 12 October 2011 - 10:17 AM.
Posted 12 October 2011 - 09:36 PM
$sList = StringReplace(StringReplace(StringRegExpReplace($sList, "[][$^.{}()+]", "\\$0"), "?", "."), "*", ".*?")
Posted 13 October 2011 - 07:52 PM
I'm seeing some other recursive versions of FLTA also aren't handling certain special characters in filenames.
Edited by Spiff59, 13 October 2011 - 08:02 PM.
Posted 13 October 2011 - 08:03 PM
Because that is what the UDF does if you set $iReturn to 0 and $iRecur to something other than 0. Look at the first post and the filter logic:For the The third search, why i receive all folders and files when filter is "MyFile.txt" ?
$iRecur <> 0 and $iReturn = 0 (Files + Folders) Searches and returns all folders unless explicitly excluded
They are the same for me - can you explain what results you get?If i replace "MyFile.txt" by "*.txt" the results are not the sames ?
I would do this:if y want to retreive all foldernames of a specific file, how can it be done?
Local $Array3 = _RecFileListToArray($DirGlob, $FileName, 1, 1, 0, 1) For $i = 1 To $Array3[0] $Array3[$i] = StringReplace($Array3[$i], "\" & $FileName, "") Next _ArrayDisplay($Array3, "Array3")
To include a closing bracket in a set, use it as the first character of the set. e.g. [][] will match either [ or ]
To include a caret (^) in a set, put it after the beginning of the set
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
Posted 13 October 2011 - 08:07 PM
Ah... the help file ...
Spiff59,
I do not believe you need to escape the [ ] characters - from the Help file:Similarly, the ^ does not need escaping:To include a closing bracket in a set, use it as the first character of the set. e.g. [][] will match either [ or ]AZJIO's SRE works fine for me.To include a caret (^) in a set, put it after the beginning of the set
M23
Edited by Spiff59, 13 October 2011 - 08:11 PM.
0 members, 0 guests, 0 anonymous users