Sitemap
tinywave

few tiny collections

SVN | Automatic update using batch file

--

Press enter or click to view image in full size

Hello All, Hope you all are having a very nice day.

I was recently using and setting up Tortoise SVN and I like it because it is very simple and easy to use. On top of it I was trying to setup an automatic update of my source (checkout folder) with just a click or by running a bat file .

I then found couple of batch commands from few blogs and then modified them to derive at the below batch script to update your soure folder with the latest code from the SVN repository.

Get Vipin Cheriyanveetil’s stories in your inbox

Join Medium for free to get updates from this writer.

For this to work you should be first checking-out the code to a location manually. then add the below script to a .bat file and save and run as administrator.

set CHECKOUTFOLDER=C:\Projects\app
set SVNPATH=C:\Program Files\TortoiseSVN\bin
"%SVNPATH%\TortoiseProc.exe" /command:update /path:"%CHECKOUTFOLDER%" /closeonend:2

What some of them means are below

CHECKOUTFOLDER : This is the location where the project is been checkedout initiallySVNPATH : This is the path where the tortoise has been installedcloseonend:2 means it will automatically close the tortoise svn update command window (the window that appears when we do the same mannually)

That’t it. Run the bat file and voila it works :)

--

--