Skip to content

Instantly share code, notes, and snippets.

@WimObiwan
Created January 16, 2017 14:37
Show Gist options
  • Save WimObiwan/6fa5843470edd41a94a416b7848c91fe to your computer and use it in GitHub Desktop.
Save WimObiwan/6fa5843470edd41a94a416b7848c91fe to your computer and use it in GitHub Desktop.
[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