title: SVN Post Commit Hook Batch Windows
body: <p>I have a Windows Server running Visual SVN Server to store our repositories.
  Also on that server is our test copy.</p>
  
  <p>I'm trying to set up a simple SVN post-commit hook so it updates that test copy automatically every time I commit something</p>
  
  <p>In Visual SVN in the post-commit hooks I've set up like this</p>
  
  <pre><code>"C:\Program Files (x86)\VisualSVN Server\bin\updatescripts.bat" D:\inetpub\TESTCOPY
  </code></pre>
  
  <p>Then that batch file has a simple update like this</p>
  
  <pre><code>PATH=%PATH%;"C:\Program Files (x86)\VisualSVN Server\bin\"
  svn update %1
  </code></pre>
  
  <p>If I run the batch file in the server by double clicking on it or from command line works fine.
  When committing something from my laptop it freezes and doesn't give me any error and locks the test copy so then I need to go in and run a clean up.</p>
  
  <p>Visual SVN service is running as network service and this aacount has full access to the bin folder and the test copy on the server.</p>
  
  <p>Any idea how to set up a simple svn update post commit hook anyone?</p>
  
  <p>Thanks 
  Fede</p>