info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: win2000 cvs batch file


From: Dennis Jones
Subject: Re: win2000 cvs batch file
Date: Tue, 17 Jul 2001 12:34:40 -0700

I seem to remember having this same problem awhile ago.  I believe the
problem has to do with the fact that when the task scheduler runs, it does
not inherit any environment settings, so the "HOME" variable is probably not
set.  In your batch file, add the line:

set HOME=C:

before you make any calls to CVS.  Of course, replace "C:" with whatever you
currently use for your "HOME" environment variable.

- Dennis

----- Original Message -----
From: "Robert Tamburo" <address@hidden>
To: <address@hidden>
Sent: Tuesday, July 17, 2001 11:28 AM
Subject: win2000 cvs batch file


> Hi,
>
> I've written a batch file that when executed does the following for me:
>
> 1. deletes  backup folder
> 2. makes new backup folder
> 3. copies current folder contents to backup folder
> 4. updates from a cvs repository
>
> Everything works fine when I double-click the batch file.
>
> However, I've added the batch file to the win2000 (server) task scheduler
> and it will not "execute" the CVS command line (it does everything prior
to
> the CVS command). Does anyone know what I have to do so that the task
> scheduler will run the CVS command?
>
> <-------------------Begin Batch File-------------------->
> @echo on
> title CVS Turkey Checkout
> echo Removing backup......
> rmdir /S /Q TurkeyBak
> echo Backing up.......
> mkdir TurkeyBak
> xcopy TurkeyCurrent TurkeyBak /E /Q /Y
> cvs -d :pserver:address@hidden:/turkey/cvsroot checkout Turkey // scheduler
> stops here
> echo Checkout completed!
> time /T
> <--------------------End Batch File--------------------->
>
> Thanks for any help,
> Robert
>
>
>
>
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]