I'm trying to copy a set of files from one folder to another. I'm doing this locally for now, but in production this will be from the network to a local folder.
The code I am using is:
'Copy working files
fso.CopyFile src, dst, True
If Err Then
errorMsg = "Unable to copy working directory files: Error Copying Files"
updateSuccessful = False
Exit Function
When I run this code, the files actually copy, but I get the "Error # 5 Invalid procedure call or argument" error returned, which stops my script.
What am I doing wrong?
The code I am using is:
'Copy working files
fso.CopyFile src, dst, True
If Err Then
errorMsg = "Unable to copy working directory files: Error Copying Files"
updateSuccessful = False
Exit Function
When I run this code, the files actually copy, but I get the "Error # 5 Invalid procedure call or argument" error returned, which stops my script.
What am I doing wrong?