I have a form which I am viewing pdf files in a web browser. I have 2 text boxes on the form which hold the current filename and path and another which will hold the newname and path. Using the FileSystemObject I want to copy the file to the new location and then delete the source file. The problem is that because the source file is being viewing in the web browser it throws a run-time 70, Permission Denied error. Pointing the browser to something else i.e. another pdf or webpage before fso.deletefile does not work to release the current file for deletion. Any suggestions?
If fso.FileExists(NewFilePath) then