Skip to content

Instantly share code, notes, and snippets.

@RC1140
Created April 19, 2010 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RC1140/371405 to your computer and use it in GitHub Desktop.
Save RC1140/371405 to your computer and use it in GitHub Desktop.
Param($Param1,$Param2)
switch ($Param2)
{
"dev" {$searchPath = "C:\Development\"}
"prod" {$searchPath = "C:\Development\Prod"}
"test" {$searchPath = "C:\Development\Testing"}
default {$searchPath = "C:\Development\"}
}
$searchFile = (Get-ChildItem $searchPath -recurse -include $Param1)
&"C:\Program Files\Beyond Compare 3\BCompare.exe" $searchFile.Fullname $Param1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment