Sign in to follow this  
Followers 0
rakudave

filefindnextfile

6 posts in this topic




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

#3 ·  Posted (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 by LxP

Share this post


Link to post
Share on other sites

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

Just add your Dir & Foldername like so.

$search = FileFindFirstFile("c:\SomeFolderName\*.*")

or to have the user chose a directory - look at:

FileSelectFolder("Choose a folder.", "")

hth

HardCopy


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

I know this ain't the right place for me to say this, but an idea just dropped to my head when I saw

this topic. What about adding an optional parameter to FileFindFirstFile, where you can specify what

kind of things it should search for.

1 - Files
2 - Folders
(default is 3)

..just sharing my magnificent mind :P

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0