copy extract.py and find all zip files
This commit is contained in:
parent
102de280fc
commit
d0057378ee
12
Sandbox Scripts/prepare.ps1
Normal file
12
Sandbox Scripts/prepare.ps1
Normal file
@ -0,0 +1,12 @@
|
||||
# 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.
|
||||
#Set-Location './Sandbox Scripts';
|
||||
Copy-Item './extract.py' '..';
|
||||
# Here's the RegEx: [/ A-z0-9\[\]\{\}\(\)\-\_.:"'+]{1,251}(\.zip)
|
||||
|
||||
$pattern = [regex] "[/ A-z0-9\[\]\{\}\(\)\-_.:`"'+]{1,251}(\.zip)";
|
||||
Get-ChildItem | Where-Object {$_.name -match $pattern };
|
||||
Write-Output $zips
|
||||
Write-Output Done;
|
||||
Loading…
x
Reference in New Issue
Block a user