Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

<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>
Panel
Html bobswift

...


Anchor
1089106
1089106