Last active
July 21, 2017 07:17
-
-
Save Kimserey/d49d54ef539e666b0411478e23734802 to your computer and use it in GitHub Desktop.
Cmd script with FOR IN and IF statements
This file contains hidden or 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 | |
cls | |
set BASE_DIR=C:\Projects\ | |
FOR %%x IN ( | |
repo1, | |
repo2) DO ( | |
IF NOT EXIST "%BASE_DIR%\%%x.Service" ( | |
git clone https://repo-site.com/%%x.Service | |
) | |
cd %BASE_DIR%\%%x.Service | |
nuget restore | |
dotnet build | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment