Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
@ECHO OFF

if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* >>local_repo_log.txt 2>&1
shift /1

REM Script to migrate tfs to git repo.
REM Reads tfs repo url from control.txt and pushes to git

@echo Migration Started: %date% %time%


REM read from control file

FOR /F "usebackq tokens=1-10 delims=," %%a IN (D:\tfs-git\control.txt) DO (
@echo Start Application "%%b": %date% %time%
if "%%d"=="NA" (
CALL D:\tfs-git\MigTool\git-tfs.exe quick-clone --username=--password= "%%a" "%%b" "%%c"</u>) else (
CALL D:\tfs-git\MigTool\git-tfs.exe clone --username=--password= "%%a" "%%b" "%%c"
)

What I have tried:

I need two different log files, one for quick clone and another for clone

Right now I am generating one single log file.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900