[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: hook-scripts & .bat files

From: Stiles, Brad <Brad.Stiles_at_shps.net>
Date: 2004-09-09 16:44:02 CEST

>
> > What I am trying to do is fire off a hook script from a
> > .bat file, I THINK I have got most of the syntax right
> > (at least from what I have read) but iam having trouble
> > trying to figure out how to assign a variable a result from
> > an operation eg::

> I think the problem is that you are trying to use the back-ticks
> '`' for evaluation within a .bat file and the cmd.exe or command.exe
> interpreters do not understand that.

> The back tics work if this was perl, which is a "normal" way of doing
> the hook scripts. Call the xxx-commit.bat from the svn code, and the
> .bat file calls a perl script that does the "real" work. As in:

I'll point out that recent versions of Windows can run scripts in VBScript through the use of the built-in CScript.exe or WScript.exe commands. I've only ever used VBScript through these, so I don't know if other scripting languages are possible. If one isn't familiar with Perl, it might be possible to do what the original poster wanted by using the batch-file-calls-vbscript.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 9 16:49:19 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.