rakudave Posted November 29, 2005 Share 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 Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted November 29, 2005 Share 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()) Link to comment Share on other sites More sharing options...
LxP Posted November 30, 2005 Share 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 Link to comment Share on other sites More sharing options...
HardCopy Posted November 30, 2005 Share 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 Link to comment Share on other sites More sharing options...
rakudave Posted November 30, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
Helge Posted December 2, 2005 Share 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 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