Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

detect file copy complete

Status
Not open for further replies.

TomSwingruber

Programmer
May 21, 2003
21
0
0
US
How can I tell the file copy is completed?
The file being copied is an MS Acess data base.
------------------------------------
[ignore]

Public Function copy_db_to_thumb_ok() As Boolean

On Error GoTo No_copy

fso.CopyFile database_path_and_name, _
thumb_drive_letter & ":\Anyware\Mobile_Actlog.mdb"

copy_db_to_thumb_ok = True

Exit Function

No_copy:

copy_db_to_thumb_ok = False

End Function
[/ignore]

-----------------------------
Thanks much
Tom
 
Add a DoEvents() below fso.CopyFile.....
Then add something like: msgbox "File Copy Complete"


Not tested but it might be this
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top