Audrey Aaliyah Jensen 667acf6b0b Copy zips to desktop
2023-08-25 10:16:17 -05:00

11 lines
437 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' '..';
$pattern = [regex] "[/ A-z0-9\[\]\{\}\(\)\-_.:`"'+]{1,251}(\.zip)";
Get-ChildItem | Where-Object {$_.name -match $pattern } | Group-Object -Property Name | ForEach-Object {
Copy-Item './..';
}
Write-Output Done;