lister read dhandle dpath;lister refresh dhandle all
end
exit
askuser: dopus request '"( 'spath||sfile' ) Version: 'selver||LF||LF'( 'dpath||sfile' ) Version: 'destver||LF||LF'Would you like to copy 'LF'( 'spath||sfile' ) to ( 'dpath' ) ?"' 'Copy|Skip|Quit'
if RC=1 then do;command copy spath||sfile to dpath quiet;return;end
if RC=0 then signal cancle
return
ExtractVer: Open('VerOut','T:Version.Tmp','Read')
SearchLoop: If EOF('VerOut') Then Do
Close('VerOut')
Return('Unknown')
End
VerTmp=ReadLn('VerOut')
If Left(VerTmp,9) ~= "Version: " Then Signal SearchLoop
FoundVer: Version=Right(VerTmp,Length(VerTmp)-9)
Close('VerOut')
Return(Version)
nofile: dopus request '"Source-File: ( 'sfile' )'LF'Version: 'selver||LF||LF'No file to compare in destination.'LF'Would you like to copy'LF'( 'sfile' ) to ( 'dpath' ) ?"' 'Copy|Skip|Quit'