For the windows robocopy command: Can I simultaneously use both /XD "DirectoryName" and /XO (for files older than those already in dest.)
Example:
robocopy /E "K:\clientPack" "C:\clientPack" /XO /XD "K:\clientPack\ClientAndPurleyDriverInjection"
Situation: I have a repository of files that I use in post-imaging tasks on Systems Under Test (SUTs), which I currently use the process below to copy across to the SUT in order to have them available locally, during actual testing, without network being required:
@echo off
if exist C:\clientPack\NUL echo "Folder exists, erasing..."
del /s /f /q c:\clientPack\*.*
for /f %%f in ('dir /ad /b c:\clientPack\') do rd /s /q c:\clientPack\%%f
echo checking for clientPack folder
if not exist C:\clientPack\NUL mkdir C:\clientPack && echo "Folder Created!"
echo clientPack folder created/detected
echo copying clientPack with drivers
xcopy "K:\clientPack" "C:\clientPack" /e
echo Files copied:
dir C:\clientPack\*.* /b
This works fine when there's plenty of bandwidth... Deleting and recopying from source all the repositories. The problem is, some of the VM targets are having network bandwidth issues. These are experimental systems which I'm still debugging (Ubuntu host using Kernel-VM / Win10 guest), and apparently my google-fu isn't good enough to find a solution.