Jump to content
Sign in to follow this  
zzen11

File search question (FileFindFirst /FileFindNext)

Recommended Posts

zzen11

I have the following script based on the example in the manual:

$search = FileFindFirstFile("C:\WINDOWS\Temporary Internet Files\*.*")

; Check if the search was successful

If $search = -1 Then

MsgBox(0, "Error", "No files/directories matched the search pattern")

Exit

EndIf

While 1

$file = FileFindNextFile($search)

MsgBox(4096, "File:", $file)

WEnd

; Close the search handle

FileClose($search)

I am searching through the internet temp / cache directory, but I don't get all the files - I only get the regular files but not the cached files.

Bug?

Edited by zzen11

Share this post


Link to post
Share on other sites
Holger

That is normal cause you got only the files in the "Temporary Internet Files"-folder.

FindFileNextFile don't search automatically in a subfolder.

You have to explicitely call it with the subfolder.

Please search through the forums-search-engine to "+filefindnextfile +folder" or something similar :idiot:

Share this post


Link to post
Share on other sites
zzen11

That is normal cause you got only the files in the "Temporary Internet Files"-folder.

FindFileNextFile don't search automatically in a subfolder.

You have to explicitely call it with the subfolder.

Please search through the forums-search-engine to "+filefindnextfile +folder" or something similar :idiot:

<{POST_SNAPBACK}>

Well, there are several hundred files under "Temporary Internet Files" itself (not in the sub folders), when I ran the script, it shows up only the ".", "..", and a couple of other files. Edited by zzen11

Share this post


Link to post
Share on other sites
this-is-me

There are no files in C:\WINDOWS\Temporary Internet Files\, but there is a folder Content.IE5.

To prove it, type in C:\WINDOWS\Temporary Internet Files\Content.IE5 in the address bar and you will understand what we both mean.


Who else would I be?

Share this post


Link to post
Share on other sites
zzen11

Well, there are several hundred files under "Temporary Internet Files" itself (not in the sub folders), when I ran the script, it shows up only the ".", "..", and a couple of other files.

<{POST_SNAPBACK}>

OK. I see. Thanks!!!!

Share this post


Link to post
Share on other sites
sykes

There are no files in C:\WINDOWS\Temporary Internet Files\, but there is a folder Content.IE5.

To prove it, type in C:\WINDOWS\Temporary Internet Files\Content.IE5 in the address bar and you will understand what we both mean.

<{POST_SNAPBACK}>

XP and 2000 are different locations though ... Mine is located under C:\Documents and Settings\UserName\Local Settings\Temporary Internet Files\Content.IE5

We have enough youth. How about a fountain of SMART?

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  

×