From b96c85236c294ad2a125638b826e225a0c74b3e6 Mon Sep 17 00:00:00 2001 From: Alexey Orlov Date: Thu, 25 Feb 2016 10:58:34 +0100 Subject: [PATCH] Binary drop script, Windows. Next iteration --- Tools/make_binary_drop_windows.ps1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Tools/make_binary_drop_windows.ps1 b/Tools/make_binary_drop_windows.ps1 index 919a31d158ef..87f6ec019441 100644 --- a/Tools/make_binary_drop_windows.ps1 +++ b/Tools/make_binary_drop_windows.ps1 @@ -48,7 +48,12 @@ Copy-Item Examples -Recurse -Destination $baseDropPath\Examples # Copy all items from the share Write-Host "Current user is "(Get-Item env:USERDOMAIN).Value"\"(Get-Item env:USERNAME).Value -Copy-Item $sharePath"\*" -Recurse -Destination $baseDropPath +# Copy-Item $sharePath"\*" -Recurse -Destination $baseDropPath +# Try with Robocopy +$robocopyCmd = "robocopy " + $sharePath + " " + $baseDropPath + " /s/e" +Write-Host "Invoking" $robocopyCmd +Invoke-Expression $robocopyCmd + # Make ZIP file @@ -58,4 +63,4 @@ Add-Type -assembly "system.io.compression.filesystem" [io.compression.zipfile]::CreateFromDirectory($source, $destination) # Remove ZIP sources -If (Test-Path $basePath) {Remove-Item $basePath -Recurse} +# If (Test-Path $basePath) {Remove-Item $basePath -Recurse}