I am using the File Copy to deploy upgrades to an application, and I am trying to catch instances where the copy fails because the User has the application open. I am trying to use this code to capture the failure:
FileCopy strFileCopyFrom, strFileCopyTo
If Err <> 0 Then
The Err is not capturing the error. I am resetting it to 0 before each copy attempt.
Is there a better method for catching the instances where the Copy fails?