Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to copy a whole folder containing many thousand files and check all files are copied over in target

$
0
0

it looks like simple, but it is not simple anymore. Task. I need to copy source files (Microsoft Office source files for example over slow WAN link into many user computers in nights and make sure all files were copied successfully. (In fact I use Altiris deployment solution 6.8 to schedule the script, but Altiris does not do anything except scheduling tje script to be run. If the script 'runs' it flags it successful.)

I am using robocopy in a little script. But I found that it sometimes does not copy all the files. (It misses one or two or sometimes more than a few files) at times, and the Office install is messed up.

I want to make sure (in the script) 'all the source files are copied to destination and if NOT, the script to throw out an error message to flag the file copy did not happen exactly I wanted. 

Additional challenge: The workstation users sometimes switch off their workstation halfway thru when copying is happening. I do not want to recopy all (except the broken copied file and the remaining files). Is it possible?

I googled out, but could not find a solution. Anyhow if it is already discussed somewhere, pls do not tease me-Instead point me the correct URL. This is my first post in this forum :-)






Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>