Index: contrib/trac-post-commit-hook
===================================================================
--- contrib/trac-post-commit-hook	(revision 6142)
+++ contrib/trac-post-commit-hook	(working copy)
@@ -138,6 +138,10 @@
 
     def __init__(self, project=options.project, author=options.user,
                  rev=options.rev, url=options.url):
+
+        # Remove the double quotes around the name used by the win batch file
+        project = project.replace('"','')
+
         self.env = open_environment(project)
         repos = self.env.get_repository()
         repos.sync()
Index: contrib/trac-post-commit-hook.cmd
===================================================================
--- contrib/trac-post-commit-hook.cmd	(revision 6142)
+++ contrib/trac-post-commit-hook.cmd	(working copy)
@@ -7,19 +7,23 @@
 :: Usage:
 ::
 :: 1) Insert the following line in your post-commit.bat script
-::
 :: call %~dp0\trac-post-commit-hook.cmd %1 %2
 ::
+::    %0 is the file being run
+::    ~dp gives just the Drive & Path of the file
+::    %~dp0 of "c:\> c:\test\this\test.bat" => "c:\test\this\" inside test.bat
+
+::
 :: 2) Check the 'Modify paths' section below, be sure to set at least TRAC_ENV
 
 
 :: ----------------------------------------------------------
 :: Modify paths here:
 
-:: -- this one *must* be set
+:: -- this one *must* be set.  Root of the trac environment (contains /conf,/db,etc)
 SET TRAC_ENV=
 
-:: -- set if Python is not in the system path
+:: -- set if Python is not in the system path. 
 SET PYTHON_PATH=
 
 :: -- set to the folder containing trac/ if installed in a non-standard location
@@ -34,5 +38,5 @@
 
 SET REV=%2
 
-Python "%~dp0\trac-post-commit-hook" -p "%TRAC_ENV%" -r "%REV%" 
+Python "%~dp0\trac-post-commit-hook" -r %REV% -p "%TRAC_ENV%"
 

