Update 'capture.ps1'
This commit is contained in:
parent
ef88d6be0d
commit
646eaa4e29
@ -17,9 +17,9 @@ foreach ($file in $fileList) {
|
|||||||
if ([string]::IsNullOrWhiteSpace($file)) { continue }
|
if ([string]::IsNullOrWhiteSpace($file)) { continue }
|
||||||
$files = @()
|
$files = @()
|
||||||
if ($file.IndexOf('/*') -gt -1) {
|
if ($file.IndexOf('/*') -gt -1) {
|
||||||
$files = Get-ChildItem -Path $file -Recurse
|
$files += Get-ChildItem -Path $file -Recurse -Attributes Hidden,System,Normal
|
||||||
} else {
|
} else {
|
||||||
$files = Get-ChildItem -Path $file
|
$files += Get-ChildItem -Path $file -Attributes Hidden,System,Normal
|
||||||
}
|
}
|
||||||
foreach ($file in $files) {
|
foreach ($file in $files) {
|
||||||
Write-Host "Found $($file.FullName)"
|
Write-Host "Found $($file.FullName)"
|
||||||
|
Loading…
Reference in New Issue
Block a user