Copy zips to desktop
This commit is contained in:
parent
d0057378ee
commit
667acf6b0b
@ -2,11 +2,10 @@
|
||||
# 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)
|
||||
|
||||
Copy-Item './extract.py' '..';
|
||||
$pattern = [regex] "[/ A-z0-9\[\]\{\}\(\)\-_.:`"'+]{1,251}(\.zip)";
|
||||
Get-ChildItem | Where-Object {$_.name -match $pattern };
|
||||
Write-Output $zips
|
||||
Get-ChildItem | Where-Object {$_.name -match $pattern } | Group-Object -Property Name | ForEach-Object {
|
||||
Copy-Item './..';
|
||||
}
|
||||
Write-Output Done;
|
||||
Loading…
x
Reference in New Issue
Block a user