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).
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
|
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.