Welcome to the Xceed Community | Help
Community Search  
More Search Options

Result code 1535 berBackupFileNotFound

Sort Posts: Previous Next
  •  03-20-2008, 4:48 PM Post no. 6275

    Result code 1535 berBackupFileNotFound

    I've been using the backup control ver. 1.0.102.0 for several years and like it. My problem is that if my users restore from a flash drive that is assigned a different letter than the one on the box used to back up I'm popping the above error.

    I found the following in the documentation:

    The Xceed Backup Library automatically knows where to find backups because the backup file locations are stored in the catalog files generated during the backup. When a backup file is not found in the location indicated by the catalogs, the BackupFileNotFound event occurs, giving you the chance to tell the Xceed Backup Library another location where it can find the backup file(s). If the library still cannot find the backup files, this error will then occur.

    My question is how to do this. I'd be grateful for a VB 6 code snippet to use as an example.

    Thanks
    Lem Shattuck
  •  03-21-2008, 1:10 PM Post no. 6276 in reply to 6275

    Re: Result code 1535 berBackupFileNotFound

    Unfortunately, there is no "built-in" way to re-route the old path (the drive letter) to the new one. A workaround for this would be to test if the file path exists before calling the restore on the file in question. You could use a function like this one:

    The FileExists function:
    <code>
    Public Function FileExists(sFullPath As String) As Boolean
    Dim oFile As New Scripting.FileSystemObject
    FileExists = oFile.FileExists(sFullPath)
    End Function
    </code>
    Charles Bérubé-Rémillard
    Technical Support
    Xceed Software Inc.
  •  03-21-2008, 3:09 PM Post no. 6277 in reply to 6276

    Re: Result code 1535 berBackupFileNotFound

    Thanks for the reply. Well according to the documentation there was a way to do it so I kept looking. When the error is raised it actually triggers an event in the Backup control: BackupFileNotFound. I was able to sucessfully re-route the path there.

    Thanks.
    lemo
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.