diff --git a/Sandbox Scripts/prepare.ps1 b/Sandbox Scripts/prepare.ps1 index eb4bd86..ad59d08 100644 --- a/Sandbox Scripts/prepare.ps1 +++ b/Sandbox Scripts/prepare.ps1 @@ -4,8 +4,9 @@ # take all *.eml and make .mht copies. Copy-Item './extract.py' '..'; -$pattern = [regex] "[/ A-z0-9\[\]\{\}\(\)\-_.:`"'+]{1,251}(\.zip)"; -Get-ChildItem | Where-Object {$_.name -match $pattern } | Group-Object -Property Name | ForEach-Object { - Copy-Item './..'; -} + +Get-ChildItem | Where-Object { $_.name -match '\.zip'} | ForEach-Object {Write-Output $_.name } + +$files = Get-ChildItem | Group-Object -Property extension -NoElement | Where-Object {$_.extension -like "zip"}; +$files | Where-Object {$_.extension -like "zip"} | ForEach-Object { Write-Output $_.name}; Write-Output Done; \ No newline at end of file