Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Get-Build-Bin-Paths($Branch, $Chunk = "name")
- {
- $builds = (Get-ChildItem ("\\share\folder\" + $branch))
- $builds | % {
- $chunks = $_.GetDirectories();
- $chunks | % {
- if ($_.Name.Equals($Chunk))
- {
- $output = $_.GetDirectories();
- $output | % {
- if ($_.Name.Equals("bin"))
- {
- return ("\\share\folder\" + $branch + "\" + $_.Parent.Parent.Name + "\" + $_.Parent.Name + "\" + $_.Name)
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement