Originally Posted by Arcticwarrio
can you just rename the file instead?
Thank you for your suggestion.
However, it turned out that I didn't need to have the second process.
I had overlooked a piece of code, further down the script, that was causing all my problems.
Thank you ALL...