Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# sync "MyOneGetServer.Script" folder to wwwroot\MyOneGetServer.Script
$source = Join-Path (pwd).Path "MyOneGetServer.Script";
$destination = Join-Path $env:WEBROOT_PATH "MyOneGetServer.Script";
# create content path beforehand
if (-not (Test-Path $destination))
mkdir -Path $destination -Force;
# msdeploy can not be used. Use robocopy to sync folder
. Robocopy.exe $source $destination /MIR /FFT /Z /XA:H /W:5
exit 0
Write-Error $_
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.