This should work for you - though you'll need to make sure you put in the correct path to svnlook.exe in the quotes and change 'ABCD' to the actual string you require to be in there:
"C:\Program Files\WANdisco\Subversion\svnlook.exe" log -t %2 %1 | FindStr ABCD
IF %ERRORLEVEL% EQU 0 GOTO OK
echo "Commit message must contain ABCD" >&2
Hope that helps.
Thanks a ton for your help orbrey. Much appreciated.
Sorry, a quick question..Whats the svnlook.exe path pointing to?
I can only see this path on my computer
That'd be the one - if you look in that folder you should see svnlook.exe in there :)
EDIT: Apologies, the path I quoted above is taken from my command line Subversion install. If you look in the bin folder in the TortoiseSVN folder you posted above you should find svnlook.exe in there.
[FONT=inherit] [FONT=inherit]That list command gives an error when the directory does not exist. That only works if the directory already exist. How do I handle the error when the directory does not exist ?[/FONT]
Great information, i read your all post. Thanks
SageNext Infotech LLC