RobotStudio event

FileSystem.GetDirectory Exception

Essentially I'm trying to automate backup creation and retrieval for archiving using the PC SDK interface.  I figured out how to create a backup on the controller, but I'm having trouble getting the directory on the controller containing the backup and copying to the computer running an application with the PC SDK.  Here's what I have (VB.Net):
 

With ABBController.FileSystem

    .RemoteDirectory = "(BACKUP)$"

    .LocalDirectory = "C:"

    If .DirectoryExists("Remote_Dir") Then

        .GetDirectory("Remote_Dir", "Local_Dir", True)

    End If

End With

 

Running this snippet will generate a GenericControllerException with the message "Error accessing/creating file on the local file system.".  When I compare the directory/file structure of my local and remote directories, I find that the HOME directory created on my PC contains none of the files found in the HOME directory on the controller's backup.  Everything else appears to have copied correctly.  Is this by design?  Is there another way to retrieve the entire backup?

 

Thanks,

Pedro

Comments

  • Hola Pedro,
     

    When you said that you managed to create a backup in the controller, were you using the FP SDK?

     

    Are you trying to copy a backup file generated by the Flex Pendant?

     

    Saludos/Carlos
    Carlos Martinez
    ABB