Link to home
Start Free TrialLog in
Avatar of Midhun 123
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
move /y "\\ServerA\F$\Folder 1\*.zip" "\\ServerB\F$\Folder 3"

Open in new window


.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
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Multiple solutions offered.