...
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>
|
|