<< Click to Display Table of Contents >> Navigation: 3. Script Language > ! User-Macros > Copy-Verify Macro |
MiniRobotLanguage (MRL)
Batch-Library
This Library is a Sample how you can add your customized File-Commandse with the Smart Package Robot.
You'll find this file also in the User-Library Folder as "Batch_Lib.mrt".
To use this Library in your Script you can copy the file into your Project folder and add the following Line at the end of your Script-Code (example):
#INC:Batch_Lib.mrt
Here is the Code of this Library.
It may be different from updated versions of the Library that is in the Library-Folder.
What does it do?
Doing "Batch-Sort of" Jobs, it is important that copying of files has ended and even the result should be verified for Integrity.
This is all done using this Macros.
' This combines a "FileCopy" with a Verify
' Usage: Source/Destination
%F_Copy_Verify $$SRC|$$DES
'#######################################################################
'#######################################################################
'#######################################################################
: %F_Copy_Verify 2
GSB.F_Copy_Verify|§§§01|§§§02
END%
:F_Copy_Verify
SAV.Save|$$FIA|$$FIB|$$CSA|$$CSB
VAF.$$FIA=§§_01
VAF.$$FIB=§§_02
'MBX.$$FIA->$crlf$$$FIB
IEF.$$FIA
GMD.vf|$$FIA|$$CSA
DEL.$$FIB
WFF.<>$$FIB|10
JIT.erol
COP.$$FIA|$$FIB
GMD.vf|$$FIB|$$CSB
JIV.$$CSA!$$CSB|eroc
EIF.
RET.
:erol
MBX. Ein Fehler beim Löschen ist aufgetreten
END.
:eroc
MBX. Ein Fehler beim Kopieren ist aufgetreten$crlf$$$FIB
END.
'#######################################################################
'#######################################################################
'#######################################################################
ENR.
'===========================================================