Announcement

Collapse
No announcement yet.

Unable to open .zip for write access

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to open .zip for write access

    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

  • #2
    Hello,

    option confirm:yes-to-all will answer yes to a dialog, but what does the dialog say exactly if you remove /silent? We do not have a "Create Zip?" dialog.

    I also tested the same script multiple times. With /silent, we remove any error dialogs for troubleshooting, so I suggest removing it for now. When running multiple times on the same archive, we are able to append into it.

    Are you using the latest BC3.x release (3.3.10)?
    Aaron P Scooter Software

    Comment


    • #3
      Aaron,

      Thanks for your reply. I'm running v2.3.1.

      Comment


      • #4
        Hello,

        Sorry, this was an issue with BC2's script and archive support. We fixed this in BC3 and going forward. For BC2, you'll need to add the %date% variable to your script name to give each a unique name, then join them together or delete the older as a separate step.

        Also, all BC2.x updates are free for 2.x users. You can download 2.5.3 from our website if you would like to run the most recent BC2 release:
        http://www.scootersoftware.com/download.php?zz=dl2_en

        Our Upgrade Policy can be found here:
        http://www.scootersoftware.com/shop....=upgradepolicy
        Aaron P Scooter Software

        Comment

        Working...
        X