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

RE: Option to Disable Output Redirects on Client Side Hooks

From: Mike O'Brien <mob_at_mikeobrien.net>
Date: Fri, 22 Jan 2010 19:47:42 -0800 (PST)

I did find a workaround with PowerShell:

powershell.exe -command "& {start-process powershell.exe (([system.environment]::GetCommandLineArgs()|ForEach-Object -process { '\"{0}\"' -f $_ })[3..([system.environment]::GetCommandLineArgs().Length-1)])}" "-file" "C:\MyScript.ps1"

This will run the PowerShell script in a new console window so that it is not affected by tsvn. Make sure you check the box to hide the script while running so that you don't see the other box popup and disappear. And as an aside, I used GetCommandLineArgs on purpose because of a quirk with $args when being used inside of a command (It doesn't properly parse them). Also the parameters need to be re qualified so that the target script can properly parse them (If a parameter has spaces).

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2441365

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-01-23 08:29:31 CET

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

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