nate8282
Community Developer
- Joined
- Dec 4, 2011
- Messages
- 737
- Reaction score
- 23
[Guide] How to Auto Update Your SVN
Create a batch file pointing to each the path of each SVN you want to update.
First, go to whatever path you want to save the batch file in (in my case C
while in Windows Explorer. Right click, then select, New, then Text Document.
Second, rename the file whatever you prefer (I called mine SVN Update), then open the document and past the following.
Third, Replace the path "D:\Documents\Kicks Profiles" with the path of your SVN
Fourth, Just copy and paste the second line of the batch file for each SVN and change the path accordingly.
EXAMPLE
Here are alternative closeout options, in case you have a preference.
Fifth, Change the extension of the .txt file you just made to .bat in order to make it an executable
batch file.
(NOTE, if you don't see the file extension .txt, while in Windows Explorer go to, Tools, Folder Options,
select the view tab, then uncheck the Hide extensions for known file types, then press Apply.)
Ok, now that we've created our batch file, we're going to schedule it to run once a day.
Scheduling Our Batch File
First, select the Windows start orb, then select, All Programs, Accessories, System Tools, then, Task Scheduler. (NOTE, Task Scheduler may be in a different folder, depending on the version of windows you have, with windows 7 you can just type in, Task Scheduler in the run box.
Second, while in Task Scheduler, select, Action, then Create Task. Give the task a name (mine is SVN Update).
Lastly, the Triggers tab, then select, New, select Daily on the left, then select what time of day you want it to start.
Next select the Actions tab, then select, New, now browse for the batch file you created early, then select ok, select ok once more
and your finished! Using the Task scheduler isn't needed, you can always ran the batch file manually, whatever your preference.
Create a batch file pointing to each the path of each SVN you want to update.
First, go to whatever path you want to save the batch file in (in my case C

Second, rename the file whatever you prefer (I called mine SVN Update), then open the document and past the following.
@echo off
TortoiseProc.exe /command:update /path:"D:\Documents\Kicks Profiles" /closeonend:2
Third, Replace the path "D:\Documents\Kicks Profiles" with the path of your SVN
Fourth, Just copy and paste the second line of the batch file for each SVN and change the path accordingly.
EXAMPLE
@echo off
TortoiseProc.exe /command:update /path:"D:\Documents\Kicks Profiles" /closeonend:2
TortoiseProc.exe /command:update /path:"D:\Documents\ProfessionBuddy" /closeonend:2
TortoiseProc.exe /command:update /path:"D:\Documents\AutoAngler2" /closeonend:2
TortoiseProc.exe /command:update /path:"D:\Documents\Azenius Profiles" /closeonend:2
TortoiseProc.exe /command:update /path:"D:\Documents\Fpsware Paladin" /closeonend:2
TortoiseProc.exe /command:update /path:"D:\Documents\I don't know SVN" /closeonend:2
Here are alternative closeout options, in case you have a preference.
/closeonend:0 don't close the dialog automatically
/closeonend:1 auto close if no errors
/closeonend:2 auto close if no errors and conflicts
/closeonend:3 auto close if no errors, conflicts and merges
/closeonend:4 auto close if no errors, conflicts and merges for local operations
Fifth, Change the extension of the .txt file you just made to .bat in order to make it an executable
batch file.
(NOTE, if you don't see the file extension .txt, while in Windows Explorer go to, Tools, Folder Options,
select the view tab, then uncheck the Hide extensions for known file types, then press Apply.)
Ok, now that we've created our batch file, we're going to schedule it to run once a day.
Scheduling Our Batch File
First, select the Windows start orb, then select, All Programs, Accessories, System Tools, then, Task Scheduler. (NOTE, Task Scheduler may be in a different folder, depending on the version of windows you have, with windows 7 you can just type in, Task Scheduler in the run box.
Second, while in Task Scheduler, select, Action, then Create Task. Give the task a name (mine is SVN Update).
Lastly, the Triggers tab, then select, New, select Daily on the left, then select what time of day you want it to start.
Next select the Actions tab, then select, New, now browse for the batch file you created early, then select ok, select ok once more
and your finished! Using the Task scheduler isn't needed, you can always ran the batch file manually, whatever your preference.