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.
It seems CMD is spawning processes concurrently so the first process locks the file while the following processes fail. So you may use "start /w" before each command to make CMD wait the process termination before interpreting next command line.: start /w %CVS_EXE% update -P Miranda-IM >report.txt start /w %CVS_EXE% update -P Plugins >>report.txt start /w %CVS_EXE% update -P Protocols >>report.txt start /w %CVS_EXE% update -P SDK >>report.txt start /w %CVS_EXE% update -P Tools >>report.txt It must solve this problem Cheers, Zandall. > -----Original Message----- > From: George Hazan [mailto:*ghazan at voxnet.ru] > Sent: Tuesday, July 22, 2003 2:50 AM > To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook > Subject: [cvsnt] CVSNT 2.0.6 fails in a batch file > > > Hi. > > I use a batch file to update the source tree mirror on the > regular basis. It > calls cvs.exe several times and redirects its output to the > report file. The > problem is that CVS runs Ok only on the first time, all > another runs fail > with the error "file report.txt is locked by another process". > > Below is the brief review of that batch file: > ========= 8< ========== >8 ============== > set CVSROOT=:ext:ghazan at cvs.sourceforge.net:/cvsroot/miranda-icq > set CVS_EXE=c:\util\cvs.exe > set CVS_RSH=c:\util\putty\plink.exe > > %CVS_EXE% update -P Miranda-IM >report.txt > %CVS_EXE% update -P Plugins >>report.txt > %CVS_EXE% update -P Protocols >>report.txt > %CVS_EXE% update -P SDK >>report.txt > %CVS_EXE% update -P Tools >>report.txt > ========= 8< ========== >8 ============== > > The problem disappears if I insert 'sleep 1' command after > each call of > CVS.EXE, but I cannot call this order of things normal. > > I'm using CVSNT 2.0.6 under WinXP Prof Eng SP1 + all postfixes, NTFS > partition. > > -- > WMBR, George Hazan (ghazan at voxnet.ru) > > _______________________________________________ > 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 >