I am trying to write a script to automatically restore. I have tried the following with no success:
Script:
print "Restoring..."
print ""
select disk 2
img="D:\XXX\Backup_HDD2_20180208_1653\Backup_HDD2_ 20180208_1653.pfi"
select image all
restore
if(errorcode(1)!=0)
then
print "ERROR: "
strerror(errorcode(1))
print ""
exit(errorcode(1))
endif
print "Successfully restored."
exit(0)

Errors:
Invalid Archive File
Can't open/create file