[cvsnt] Re: Problem with xcopy in postcommand scirpt

Matt Schuckmann matthew_schuckmann at amat.com
Tue Jun 14 19:59:32 BST 2005


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.


Didn't take me long to figure it out.
I just modified the batch file to provide an empty file as the standard
input for the xcopy command.

The xcopy command in my batch file now looks like:
xcopy.exe /i /s /e /d /y E:\DATA\Mirror\Documents
c:\Software\Mirror\Documents\ < e:\DATA\Scripts\empty.txt

Maybe there is some other better/simpler way to create a valid STDIN but
this seems to work for now.

Now I just have to get the network permissions thing worked out, I think I'm
gonna have to talk to my IT guy about that one.

Thanks
Matt


"Matt Schuckmann" <matthew_schuckmann at amat.com> wrote in message
news:d8n8q4$grq$1 at paris.nodomain.org...
> Interesting, guess I'll have to use some other deep copy mechanism unless
> there is some easy way to make CVS provide a valid stdin handle.
>
> Thanks, for the info that was really bothering me.
>
> Matt S.
>
>
> "Glen Starrett" <grstarrett at cox.net> wrote in message
> news:d8n5j3$feb$1 at paris.nodomain.org...
> > Tony Hoyle wrote:
> > >> And amazingly, if I use the copy command instead of xcopy then the
> > >> files do get copied when run from postcommand!
> > >>
> > > Wierd...
> > >
> > > Maybe xcopy is checking its terminal status or something..
> >
> > YES!!  That's it -- I remembered something from before about that, but
> > not related to CVSNT.
> >
> > A quick Google refers me to a blog entry mentioning how XCOPY checks for
> > STDIN to be present or it "just doesn't run" (at the end of the post).
> >
> > http://blogs.msdn.com/khen1234/archive/2005/4/25.aspx
> >
> >
> > -- 
> > Glen Starrett
>
>





More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook