Skip to content

Instantly share code, notes, and snippets.

@samuraitruong
Created November 23, 2017 22:15
Show Gist options
  • Save samuraitruong/94cf9b613a3b32fdb3643a6b2716d5f6 to your computer and use it in GitHub Desktop.
Save samuraitruong/94cf9b613a3b32fdb3643a6b2716d5f6 to your computer and use it in GitHub Desktop.
echo off
Setlocal EnableDelayedExpansion
cls
SET "WWWROOT=C:\inetpub\wwwroot"
SET "SOURCES=deploy"
rem Using quotes around "var=value" in case the path may contain spaces
for /d %%a in ("%WWWROOT%\*") do (
echo Copying : from : %SOURCES%, Target: %%a
xcopy %SOURCES% "%%a" /Y /S
)
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment