I need to move a bunch of files from a network location (source) \\192.168.0.4\c$\SomeFolder\* to some other location at regular intervals.
Using the "Move File" action, the problem is that if the (source) location is available everything is good but if (source) location is not available it still continues with "0 files moved" without any errors. Is there a way to raise an error if that location is not available at the time?
I noticed the same issue also exists for Copy File(s) action.
Thanks
Hi
If you enable the ‘Fail if Zero Files Moved’ option, the Move action will fail in this scenario (the Copy action has the equivalent option). Alternatively you can use the ‘If File/Folder Exists’ action to check whether the source location is available before attempting to move files.
Regards,
Steve
The 'If File/Folder Exists' option worked well.
I can't use 'Fail if Zero Files Moved' because network location may be available but there could be just no files to move. I don't want it to fail in that case. I only needed it to fail if network location wasent availabe (files to move could be zero or 1, 2, 3, x).
Thanks