How to check for an existing executable before running it in a post-build event in VS2008?
- by wtaniguchi
Hey all,
I'm trying to use SubWCRev to get the current revision number of our SVN repository and put it in a file so I can show it in the UI.
As I'm working with a Web App, I use the following post build command line:
"SubWCRev.exe" "$(SolutionDir)." "$(ProjectDir)Content\js\revnumber.js.tpl" "$(ProjectDir)Content\js\revnumber.js"
It works great, but now I want to make sure I have SubWCRev before running it, so I can skip this post build if a fellow developer is not running TortoiseSVN.
I tried a few batch codes here, but couldn't figure this out.
Any ideas?
Thanks!