Audrey Aaliyah Jensen 8f9b6a9c46 get zips without regex
2023-08-25 10:35:57 -05:00

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;