title: Command line to update SVN folders
body: <p>I have tried several things so far, but I haven't had much luck yet. I'm attempting to have a command line or PowerShell script that I can run once a day to make sure my numerous checked-out projects are up to date.</p>
  
  <p>I know I would be looping through the directory folders inside my workspace, but when setting the variables I haven't had any luck as it will error out. I am using <a href="http://en.wikipedia.org/wiki/TortoiseSVN" rel="nofollow noreferrer">TortoiseSVN</a>, and <a href="http://en.wikipedia.org/wiki/Windows_Vista" rel="nofollow noreferrer">Windows&nbsp;Vista</a>.</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>echo == Initiating system instance variables...
  echo. -- Setting the variables...
  
  :: Here you need to make some changes to suit your system.
  set SOURCE=C:\workspace\Project
  set SVN=C:\Program Files\TortoiseSVN\bin
  :: Unless you want to modify the script, this is enough.
  
  echo. %SOURCE%
  echo. %SVN%
  echo. ++ Done setting variables.
  echo.
  echo == Updating source from SVN
  echo. -- Running update...
  "%SVN%\TortoiseProc.exe" /command:update /path:"%SOURCE%" /closeonend:2
  echo. ++ Done.
  
  echo. -- Cleaning up...
  set SOURCE=
  set SVN=
  echo. ++ Done.
  
  @echo off
  </code></pre>