Created
January 16, 2017 14:37
-
-
Save WimObiwan/6fa5843470edd41a94a416b7848c91fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param() | |
$source = '\\greatgazoo\FTPRoot\internal\Setup b*' | |
$dest = 'c:\MyForce\Setups' | |
$products = @( | |
'AgentMonitoringService', | |
'AskiaFace', | |
'Cati', | |
'Cca', | |
'CTArchitect', | |
'ExportService', | |
'RecordingManagementService', | |
'ReportingService', | |
'SpeechService', | |
'Supervisor', | |
'WebProd' | |
) | |
dir $source -Directory | %{ | |
$sourceDir = $_ | |
Write-Verbose "Using sourceDir $sourceDir" | |
$products | %{ | |
$product = $_ | |
cp (Join-Path $sourceDir "$product-*") (Join-Path $dest $product) -Verbose | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment