Skip to content

Commit

Permalink
Fix for issue #78.
Browse files Browse the repository at this point in the history
  • Loading branch information
z4ns4tsu committed Jan 23, 2015
1 parent 37f07d1 commit 9416792
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Modules/Disk/Get-FlsBodyfile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ Param(
)

Function Expand-Zip ($zipfile, $destination) {
[int32]$copyOption = 16 # Yes to all
$shell = New-Object -ComObject shell.application
$zip = $shell.Namespace($zipfile)
foreach($item in $zip.items()) {
$shell.Namespace($destination).copyhere($item)
$shell.Namespace($destination).copyhere($item, $copyOption)
}
}
}

$flspath = ($env:SystemRoot + "\fls.zip")

Expand Down
5 changes: 3 additions & 2 deletions Modules/Process/Get-RekalPslist.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ BINDEP rekall.zip

# Expand-Zip does what the name implies, here for reference, used by Get-FlsBodyfile.ps1
Function Expand-Zip ($zipfile, $destination) {
[int32]$copyOption = 16 # Yes to all
$shell = New-Object -ComObject shell.application
$zip = $shell.Namespace($zipfile)
foreach($item in $zip.items()) {
$shell.Namespace($destination).copyhere($item)
$shell.Namespace($destination).copyhere($item, $copyOption)
}
}
}

$rkpath = ($env:SystemRoot + "\rekall.zip")

Expand Down
3 changes: 2 additions & 1 deletion Modules/default-template.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ function add-zip

# Expand-Zip does what the name implies, here for reference, used by Get-FlsBodyfile.ps1
Function Expand-Zip ($zipfile, $destination) {
[int32]$copyOption = 16 # Yes to all
$shell = New-Object -ComObject shell.application
$zip = $shell.Namespace($zipfile)
foreach($item in $zip.items()) {
$shell.Namespace($destination).copyhere($item)
$shell.Namespace($destination).copyhere($item, $copyOption)
}
}

0 comments on commit 9416792

Please sign in to comment.