TortoiseSVN: how to update multiple directories in one window
I want to create a batch file that will update SVN. I have two different paths.
I have below code that will update two unique directories. Is there a way to do this in one line of code?
@echo off
cd C:\Program Files\TortoiseSVN\bin\
start TortoiseProc.exe /command:update /path:"C:\Files\SVN Repository\_Testing" /closeonend:0
start TortoiseProc.exe /command:update /path:"C:\Files\SVN Repository\_UAT" /closeonend:0
I want it to look like this: http://i.stack.imgur.com/1sfC3.jpg
Thanks in advance!
+3
source to share
1 answer
From the documentation :
Since some commands can take a list of target paths (for example, by committing to multiple specific files), the parameter
/path
can take multiple paths separated by a character*
.
One of the examples at the end of the page demonstrates this:
TortoiseProc.exe /command:commit
/path:"c:\svn_wc\file1.txt*c:\svn_wc\file2.txt"
/logmsg:"test log message" /closeonend:0
So, you have to put both paths together, separated *
. Try:
start TortoiseProc.exe /command:update /path:"C:\Files\SVN Repository\_Testing*C:\Files\SVN Repository\_UAT" /closeonend:0
+6
source to share