Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.
I would test if the batch file runs at all by changing it to this: @echo off echo First parameter= %1 echo Second parameter= %2 echo Finished test.... If you call this from postcommand you should see the feedback every time you do a cvs command on the server (since postcommand runs for every cvs command). If this does not work then you have to check why. I have a server where i set up a postcommit call to a batch file much like you did. This batch file does this: E: CD /Test/WWW cvs update And what I see on my commits is that the cvs update command runs and updates my test site. I see all the cvs feedback lines from the server coming back to me. So it is a very good test to check what is going on just to make sure you can execute the batch script itself. /Bo -----Original Message----- From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf Of Matt Schuckmann Sent: den 13 juni 2005 18:03 To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook Subject: [cvsnt] Re: Problem with xcopy in postcommand scirpt Bo wrote > Finally, I can't see how the %2 parameter gets set to anything in your > postcommand script entry, but it controls what your batch file does. > Maybe that was a posting omission? The documentation states that the default parmeters for postcommand actions are the module followed by the command, I"m just relying on the default behavior and it does appear to work fine. I'll try the "net use" statement but I don't think that is the problem it appears to be more fundimental to the xcopy (see my reply to Tony's post). Thanks Matt S. "Bo Berglund" <bo.berglund at telia.com> wrote in message news:d4uka1paq601u1sqpvmumfckircl4fgfel at 4ax.com... > On Fri, 10 Jun 2005 17:23:23 -0700, "Matt Schuckmann" > <matthew_schuckmann at amat.com> wrote: > > >Here is the line I added to postcommand > >^Documents.* e:/DATA/scripts/UpDocWeb.bat > > > > > >Here is the batch file I've created: > > > >@echo on > >@echo '*** Running UpDocWeb.bat ***' > >IF %2 equ commit ( GOTO UPDATE ) ELSE ( GOTO DONE ) > > > >:UPDATE > >@echo '*** Updating Documents Mirror ***' > >e: > >pushd e:\DATA\Mirror\Documents > >c:\progra~1\cvsnt\cvs.exe -Q up > >c:\windows\system32\xcopy.exe /i /s /e /d /y E:\DATA\Mirror\Documents > >Z:\Software\Mirror\Documents\ > >popd > > > >:DONE > > > > You can't use mapped drive letters (Z) in a script that runs by the > cvsnt service. Drive letter mappings are per-user on their login and > so will not be observed by the cvsnt service. > I don't think that the service is at all able to access the network > even given tha it normally runs as LOCALSYSTEM. > > One idea could be to add a line at the beginning of the batch script > with a net use command where you specify both user account and the > account password. Then at the end you could use the net command to > discard the mapping. > Note that this means that you are putting an account password in > cleartext into a batch file though... > > Finally, I can't see how the %2 parameter gets set to anything in your > postcommand script entry, but it controls what your batch file does. > Maybe that was a posting omission? > > > /Bo > (Bo Berglund, developer in Sweden) _______________________________________________ cvsnt mailing list cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs