Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have VisualSVN running on a Windows 2003 64 bit server. I'm storing my repository on a NAS and using UNC path.

The problem comes in when using svnlook in a hook bat file.

I get:

'svnlook' is not recognized as an internal or external command,

I have a similar set up on a Window 2003 32 bit server that runs with out issue. The two variables are the 64 bit OS and the UNC path.

Any ideas how to get my hook script to work?

share|improve this question
    
Can you run svnlook from the command prompt? –  Alexandre Jasmin Jul 30 '10 at 18:52
    
@Alecander Jasmin - Same error in both environments. –  NitroxDM Jul 30 '10 at 19:31

2 Answers 2

up vote 1 down vote accepted

Write the full path to svnlook in the batch file or add the directory where it resides to your PATH environment variable.

To change the value of PATH

  • Right-click on My Computer to open System properties
  • Under the Advanced tab click on the Environment Variables button
  • Select PATH under System Variables
  • Click the edit button
  • Prepend the directory path and a ;
share|improve this answer
    
It worked after I restarted the service. Thanks! –  NitroxDM Jul 30 '10 at 19:24

VisualSVN Server doesn't add svnlook to PATH environment variable to prevenent conflicts with other Subversion client. You should use VISUALSVN_SERVER environment variable to access svnlook using full path. I.e.

"%VISUALSVN_SERVER%\bin\svnlook" 
share|improve this answer
    
I guess but shouldn't you use percent signs like: "%VISUALSVN_SERVER%\bin\svnlook" –  Alexandre Jasmin Aug 14 '10 at 3:04
    
@Alexander Thanks for pointing typo. It seems they get lost in wiki formatting. –  Ivan Zhakov Aug 16 '10 at 21:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.