Created
November 23, 2017 22:15
-
-
Save samuraitruong/94cf9b613a3b32fdb3643a6b2716d5f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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