Sign in to follow this  
Followers 0
copyleft

How Do You Search The Entire Hard Drive

2 posts in this topic

How do you search the entire hard drive for a file and then execute it. The

example, below, is shown for executing a file in the same folder. But I don't know

where the user may save the download. Thanks.

; Shows the filenames of all files in the current directory, note that "." and ".." are returned.

$search = FileFindFirstFile("*.*")

; 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)

If @error Then ExitLoop

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

WEnd

; Close the search handle

FileClose($search)

Share this post


Link to post
Share on other sites



search, all forums for file search slim shady made a script to do what you want.

"I'm not even supposed to be here today!" -Dante (Hicks)

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