goldenix Posted November 29, 2009 Posted November 29, 2009 (edited) How can I display all filenames(numbers in this example) inside a folder in a messagebox? For $Filename = 0 to 4 ;find all filenames Next MsgBox(0,'Info!',$Filename & @CRLF & $Filename & @CRLF & $Filename & @CRLF ETC.....) Exit Edited November 29, 2009 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Moderators Melba23 Posted November 29, 2009 Moderators Posted November 29, 2009 goldenix, Create the contents first. This untested code should give you the idea: $sMsg = "" For $Filename = 0 to 4 ;find all filenames $sMsg &= $Filename & @CRLF Next MsgBox(0,'Info!',$sMsg) Exit M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Valuater Posted November 29, 2009 Posted November 29, 2009 another answer to the actual question... #include <File.au3> #include <Array.au3> $FileList = _FileListToArray(@DesktopDir) If @error = 1 Then MsgBox(0, "", "No Files\Folders Found.") Exit EndIf _ArrayDisplay($FileList, "$FileList") ... straight from the help file 8)
goldenix Posted November 29, 2009 Author Posted November 29, 2009 goldenix,Create the contents first. This untested code should give you the idea: M23Thanx is what I was looking for My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
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