1 2 3 4 5 6 7 |
$path = "C:\Users\mail\Desktop\新しいフォルダー" $pattern = "^\~\$.*\.xls[x|m]" Get-ChildItem -Path $path -Force -Recurse | Where-Object { $_.Name -match $pattern } | ForEach-Object { #Move-Item -Path $_.FullName -Destination "./" -Force Write-Host $_.FullName } |