12 lines
541 B
PowerShell
12 lines
541 B
PowerShell
# Copy Extract.py and *.zip to the desktop.
|
|
# Regex the password from the zip's filename. Copy to var
|
|
# Open 7zip, extract to desktop, input password.
|
|
# take all *.eml and make .mht copies.
|
|
|
|
Copy-Item './extract.py' '..';
|
|
|
|
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; |