visio_files
unknown
powershell
2 years ago
485 B
4
Indexable
$allData = Import-Csv -Delimiter ';' -Path .\input.csv; #$allData | Get-Member; $a = @() foreach($group in $allData) { $a += Get-ChildItem -Path "Wells\$($group."New Asset")\$($group."Well name")\" -Recurse | Where-Object { $_.Name -match '(offset)?\s*(well)?\s*'+$group."Well name"+'.vsd$' } | %{$_.FullName}; $a += Get-ChildItem -Path "Wells\$($group."New Asset")\$($group."Well name")\" -Recurse | Where-Object { $_.Name -match 'Risk assesment.xlsx$' } | %{$_.FullName}; } $a
Editor is loading...