I need to create a batch file that backs up a file then deletes the original file so that I can download a file with the same name.
copy myfile.csv myfileBackup.csv
myapplication --username --password --formID --output myfile.csv
The problem I am running into is when a file is deleted/renamed it ties up that file and prevents the next step.
I get an error message
The process cannot access the file because it is being used by another process.
This caused my import/download to fail.
I appreciate any help that can be provided.