reva Posted July 30, 2008 Share Posted July 30, 2008 I'm trying to present an interface to the user, to select a file/list of files among the many of such available in a given folder. I have many files on my computer by name start.bat, present in various folders. I'd like to design a GUI, which shows a list of start.bat in the current drive, as shown below: D c:\compilation1\start.bat D c:\backup\compilation1\start.bat D c:\backup\compilation2\start.bat D c:\backup\compilation3\start.bat D c:\backup\compilation15jul08\start.bat D c:\mycompilation1\start.bat D c:\testcompilation1\start.bat The user should be able to select a single file, or multiple files from the check-box for some more actions to follow. Thanks in advance. Link to comment Share on other sites More sharing options...
DaRam Posted July 30, 2008 Share Posted July 30, 2008 So, how is it going? Post what code you have so far and we will try to help.Take a look in the help file for 'FileFindFirstFile', and 'FileFindNextFile'Then take a shot at creating a GUI to display the list (GUICreate and GUICtrlCreateListView).I'm trying to present an interface to the user, to select a file/list of files among the many of such available in a given folder.I have many files on my computer by name start.bat, present in various folders.I'd like to design a GUI, which shows a list of start.bat in the current drive, as shown below:D c:\compilation1\start.batD c:\backup\compilation1\start.batD c:\backup\compilation2\start.batD c:\backup\compilation3\start.batD c:\backup\compilation15jul08\start.batD c:\mycompilation1\start.batD c:\testcompilation1\start.batThe user should be able to select a single file, or multiple files from the check-box for some more actions to follow.Thanks in advance. Link to comment Share on other sites More sharing options...
reva Posted July 30, 2008 Author Share Posted July 30, 2008 So, how is it going? Post what code you have so far and we will try to help.Take a look in the help file for 'FileFindFirstFile', and 'FileFindNextFile'Then take a shot at creating a GUI to display the list (GUICreate and GUICtrlCreateListView).I've accidentally deleted the script I was working-on till now.I'll write it in a short while. This is what I've started with. I'm sorry for the delay.$search = FileFindFirstFile("start.bat") If $search = -1 Then MsgBox(0, "Error", "No files matched the search pattern") ExitEndIf$file = ""While 1 $file = $file& @LF &FileFindNextFile($search) If @error Then ExitLoopWEndMsgBox(4096, "File:", $file)FileClose($search) Link to comment Share on other sites More sharing options...
Zedna Posted July 30, 2008 Share Posted July 30, 2008 _FileListToArrayEx() with recurse here: http://www.autoitscript.com/forum/index.ph...st&p=246376 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
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