Jump to content
Sign in to follow this  
dmitrybv

How to move a group of files and folders while minimizing the number of intermediate errors?

Recommended Posts

Hello 

How to move a group of files and folders while minimizing the number of intermediate errors?


I need to move a group of files and folders so that in case of an error, either all the files and folders remain in their old place.


Probably, I need to somehow check each file for blocking by another process and block all the files myself during the move.

Share this post


Link to post

With any substantial number and sizes of files that could waste a lot of time as the whole operation keeps being restarted after each problem is encountered and fixed. 

 

I would suggest doing the copy with a tool that synchronizes directories then once everything is copied successfully delete from the source. Can even use the same tool for both steps - like robocopy to copy everything followed by a /MOVE pass to pick up any last minute changes while clearing out the source. 

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×