1442: post-review can't work in a BAT file under windows system when started from File Explorer.

jackh*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Jan. 4, 2010
What version are you running?
RBTools-0.2beta2-py2.6.egg
Review Board 1.0.5.1

What's the URL of the page containing the problem?
It's not on the webpage, but in the client side.

What steps will reproduce the problem?
1. Execute the post-review.exe in the command console could successfully
post a new review request in the server.  Everything's OK.
2. Put the same command line for post-review.exe into a BAT file and keep
in the same folder as the console startup.
3. Double click the BAT file through the File Explorer.

What is the expected output? What do you see instead?
It should be the same as running from the console window.  I should see a
new request created in server side.  However, it's failed with an error
message "The current directory does not contain a checkout from a supported
source code repository.".  The directory was exactly the root folder of my
working copies.

What operating system are you using? What browser?
Windows XP SP3, there's no dependency of browser since it's not be opened yet.

Please provide any additional information below.
david
#1 david
Normally, the working directory isn't changed when you exec a bat file from explorer.
http://weblogs.asp.net/whaggard/archive/2005/01/28/get-directory-path-of-an-executing-batch-file.aspx
suggests you can add "cd /d %~dp0" to your batch file to change the working directory
before starting post-review.
  • +UserError