>> -----Original Message-----
>> From: Floris van der Ploeg [mailto:fvdploeg_at_xs4all.nl]
>> Sent: Tuesday, January 15, 2008 6:17 AM
>> To: users_at_subversion.tigris.org
>> Subject: using custom hooks
>> Is there a way to use PowerShell Scripts as Hook Scripts?
>> Changing the Filetype Association for .ps1 files didn't do the job.
>> Currently, I've create a workaround by kicking off a cmd script which,
>> turn, runs the PowerShell.exe command and passes the arguments. This,
>> however, doesn't return the correct exit code from my PowerShell
>> So there could be 2 possible solutions:
>> 1. enabling powershell support for hook scripts
>> 2. passing the exit code from the powershell script to the cmd script
>> does anybody know how to do this??)
> Google knows everything. A search on "powershell exit code" came back
> Although it's odd that you're having a problem in the first place since
> the cmd.exe should already receive the exit code. The 'if errorlevel'
> has been around since the early days of DOS, but it's always been
> exceeding clumsy:
> rem errorlevel 1 will catch 1 or higher
> If errorlevel 1 goto FAILED
> rem errorlevel 0 will catch 0 or higher
> If errorlevel 0 goto SUCCESS
> exit 1
> exit 0
Hm... sounds simple enough ...
I'm just thinking too difficult. Receive the exit code from the powershell
script, and pass it to the exit statement in the CMD.
Thanks for your input!
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential, proprietary, and/or
> privileged material. Any review, retransmission, dissemination or other
> use of, or taking of any action in reliance upon this information by
> persons or entities other than the intended recipient is prohibited. If
> you received this in error, please contact the sender and delete the
> material from all computers. GA623
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-15 17:13:31 CET