mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 12:08:37 +08:00
16 lines
404 B
PowerShell
16 lines
404 B
PowerShell
$sourcePath = $args[0]
|
|
$destinationDir = $args[1]
|
|
|
|
Write-Host $sourcePath
|
|
Write-Host $destinationDir
|
|
|
|
if (!(Test-Path -Path $destinationDir))
|
|
{
|
|
New-Item -Path $destinationDir -ItemType "directory"
|
|
}
|
|
|
|
$sourceFiles = Get-ChildItem -Path $sourcePath -Recurse | ?{$_.Extension -match "exe|msi"}
|
|
foreach ($item in $sourceFiles)
|
|
{
|
|
Copy-Item -Path $item.FullName -Destination $destinationDir -Force
|
|
} |