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.
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)