Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Macro name changed from html to html-bobswift during server to cloud migration processing.

...

Anchor
1089500
1089500
The following is a sample that accomplishes this task, exiting from the loop if a file cannot be copied or if, after copying a file, it cannot be deleted:

Panel

Html bobswift

<pre>
forfiles local=*
   copy local=$(_file)
   if $(_lastrc) NE 0
      print msg="Could not copy $(_path)"
      break
   end
delete local=$(_file)
   if $(_lastrc) NE 0
      print msg="Could not delete $(_path)"
      break
   end
end
</pre>

 

Anchor
1089106
1089106