Jump to content
Sign in to follow this  

How to extract the file in the folder

Recommended Posts


I want to extract the file that is present in the folder. Following is the code i have written.But when i execute it is throwing an error.

$Result_file_folder="D:\Documents and Settings\Arunac\My Documents\Results"

$search = FileFindFirstFile( $Result_file_folder & "*.html")

if $search=-1 Then

MsgBox(0,"Error", "Result file not found in the folder")



while 1

$result_file = FileFindNextFile( $search)

if @error then ExitLoop

$result_page=$Result_file_folder & $result_file

MsgBox(4096,"Result page url:",$result_page)



Can someone help me where i went wrong?


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...