rakudave 1 Report post Posted November 29, 2005 well, i was just asking myself, but: can one select the folder in which the script should "filefindnextfile"? ('cause just the files in the scriptdir aren't enough for a project i've got in mind...) greez r Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Share this post Link to post Share on other sites
MSLx Fanboy 0 Report post Posted November 29, 2005 Maybe you could clarify the question better, however, using FileGetAttrib would tell you if it is a directory, and then you can just FileFindFirstFile on that as well. You might be able to find a UDF either in the public, the beta, or somewhere in the forums, that recursively searches through folders... Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Share this post Link to post Share on other sites
LxP 2 Report post Posted November 30, 2005 (edited) Local $Handle = FileFindFirstFile(@WindowsDir & '\*.*')The FileFindFirstFile() call determines which folder to search for files. If you'd like to subsequently search a different folder, you'll need to initiate a new search by calling FileFindFirstFile() again. Edited November 30, 2005 by LxP Share this post Link to post Share on other sites
HardCopy 1 Report post Posted November 30, 2005 well, i was just asking myself, but:can one select the folder in which the script should "filefindnextfile"?('cause just the files in the scriptdir aren't enough for a project i've got in mind...)greezrJust add your Dir & Foldername like so.$search = FileFindFirstFile("c:\SomeFolderName\*.*") or to have the user chose a directory - look at:FileSelectFolder("Choose a folder.", "")hthHardCopy Contributions: UDF _DateYearFirstChildren are like Farts, you can just about stand your own.Why am I not a Vegetarian?...Well...my ancestors didn't fight & evolve to the Top of the food chain for me to survive on Salad Share this post Link to post Share on other sites
rakudave 1 Report post Posted November 30, 2005 oh, it IS that simple... (if only they'd lost a word about that in the RTFM...) thankU guys Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Share this post Link to post Share on other sites
Helge 1 Report post Posted December 2, 2005 I know this ain't the right place for me to say this, but an idea just dropped to my head when I sawthis topic. What about adding an optional parameter to FileFindFirstFile, where you can specify whatkind of things it should search for.1 - Files 2 - Folders (default is 3)..just sharing my magnificent mind Share this post Link to post Share on other sites