^. ^<^| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;^| ; ;^| ; ZEX file to copy from source to destination ;^| ; if the destination file does not exist or if ;^| ; the destination file is different than the ;^| ; source file. ;^| ; ;^| ; Syntax: ;^| ; COPIF du:source du:destination ;^| ; ;^| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;^| ^> ^# ^& COMP $1 $2 /T ;note compare source to destination with test only option^| if 9 1 ;note If source not found^| ECHO -- $1 NOT FOUND^| else^| if 9 2 ;note If destination not found^| ECHO -- DESTINATION FILE does not exist, copying $1 to DESTINATION^| CPY $2=$1^| else^| if 9 3 ;note If a difference was found^| ECHO -- Files are different, updating $2 with $1^| CPY $2=$1^| else^| ECHO -- Files are the same, update not required.^| fi ;note if 9 3^| fi ;note if 9 2^| fi ;note if 9 1^| ^#