I have the following script, which selects all files in a folder and copies them to a zip file. The script works fine the first time. However, when I rerun the same script, I get Unable to open .zip for write access errors.
What am I missing?
Also, is there a way to override the prompt to create the .zip file in order to run the script with the /silent switch?
SCRIPT
log normal "G:\Backup Beyond Compare\Scripts\Quicken_Zip.log"
expand all
select left.all.files
copyto "G:\Backup Beyond Compare\FTP RemoteBackup Staging\Q.zip"
FIRST LOG
4/27/2014 3:14:11 PM >> log normal "G:\Backup Beyond Compare\Scripts\Quicken_Zip.log"
4/27/2014 3:14:11 PM >> load Quicken_Zip
4/27/2014 3:14:11 PM Load Comparison: G:\Quicken <-> G:\Backup Beyond Compare\FTP RemoteBackup Staging
4/27/2014 3:14:11 PM >> expand all
4/27/2014 3:14:11 PM >>
4/27/2014 3:14:11 PM >> #Select all files on the left and create a zip file
4/27/2014 3:14:11 PM >> select left.all.files
4/27/2014 3:14:11 PM >> copyto "G:\Backup Beyond Compare\FTP RemoteBackup Staging\Q.zip"
4/27/2014 3:14:14 PM Successfully Copied 7 Files
SECOND LOG
4/27/2014 3:14:40 PM >> log normal "G:\Backup Beyond Compare\Scripts\Quicken_Zip.log"
4/27/2014 3:14:40 PM >> load Quicken_Zip
4/27/2014 3:14:40 PM Load Comparison: G:\Quicken <-> G:\Backup Beyond Compare\FTP RemoteBackup Staging
4/27/2014 3:14:40 PM >> expand all
4/27/2014 3:14:40 PM >>
4/27/2014 3:14:40 PM >> #Select all files on the left and create a zip file
4/27/2014 3:14:40 PM >> select left.all.files
4/27/2014 3:14:40 PM >> copyto "G:\Backup Beyond Compare\FTP RemoteBackup Staging\Q.zip"
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
What am I missing?
Also, is there a way to override the prompt to create the .zip file in order to run the script with the /silent switch?
SCRIPT
log normal "G:\Backup Beyond Compare\Scripts\Quicken_Zip.log"
expand all
select left.all.files
copyto "G:\Backup Beyond Compare\FTP RemoteBackup Staging\Q.zip"
FIRST LOG
4/27/2014 3:14:11 PM >> log normal "G:\Backup Beyond Compare\Scripts\Quicken_Zip.log"
4/27/2014 3:14:11 PM >> load Quicken_Zip
4/27/2014 3:14:11 PM Load Comparison: G:\Quicken <-> G:\Backup Beyond Compare\FTP RemoteBackup Staging
4/27/2014 3:14:11 PM >> expand all
4/27/2014 3:14:11 PM >>
4/27/2014 3:14:11 PM >> #Select all files on the left and create a zip file
4/27/2014 3:14:11 PM >> select left.all.files
4/27/2014 3:14:11 PM >> copyto "G:\Backup Beyond Compare\FTP RemoteBackup Staging\Q.zip"
4/27/2014 3:14:14 PM Successfully Copied 7 Files
SECOND LOG
4/27/2014 3:14:40 PM >> log normal "G:\Backup Beyond Compare\Scripts\Quicken_Zip.log"
4/27/2014 3:14:40 PM >> load Quicken_Zip
4/27/2014 3:14:40 PM Load Comparison: G:\Quicken <-> G:\Backup Beyond Compare\FTP RemoteBackup Staging
4/27/2014 3:14:40 PM >> expand all
4/27/2014 3:14:40 PM >>
4/27/2014 3:14:40 PM >> #Select all files on the left and create a zip file
4/27/2014 3:14:40 PM >> select left.all.files
4/27/2014 3:14:40 PM >> copyto "G:\Backup Beyond Compare\FTP RemoteBackup Staging\Q.zip"
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
4/27/2014 3:14:40 PM Unable to open Q.zip for write access
Comment