Midhun 123
asked on
how to validate moving files using batch script
Hi Experts,
Good Day..
As per my Work, I have to move files from one sever to another server using batch Script. I am able to perform this task. Screenshot of the same is attached below
.But After this, I need to validate whether moving files is fine or not. If any error occurs (because of network issue or something ) , then need to perform moving task again..
SO how can I do this task ? How can we capture errors? Can I use IF command ? Any help regarding this would be highly appreciated.
Thanks in Advance...
Good Day..
As per my Work, I have to move files from one sever to another server using batch Script. I am able to perform this task. Screenshot of the same is attached below
move /y "\\ServerA\F$\Folder 1\*.zip" "\\ServerB\F$\Folder 3"
.But After this, I need to validate whether moving files is fine or not. If any error occurs (because of network issue or something ) , then need to perform moving task again..
SO how can I do this task ? How can we capture errors? Can I use IF command ? Any help regarding this would be highly appreciated.
Thanks in Advance...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Multiple solutions offered.