获取-ChildItem长度错误

时间:2017-09-14 04:52:03

标签: powershell get-childitem

我要在Search_String中搜索All_Files/Folder/Sub_Folder在特定驱动器上,所以我在命令下面,但是它给了我一些文件夹/文件的错误,因为{{1} }

命令:

Must be Less than 260 characters, and the directory name must be less than 248 characters

我已尝试Get-ChildItem D: -Recurse | Where-Object {(Select-String -InputObject $_ -Pattern "Search_String" -Quiet) -eq $true} | ForEach-Object {Write-Output $_} 而不是Get-AlphaFSChildItems,但它无效。

https://gallery.technet.microsoft.com/Get-AlphaFSChildItems-ff95f60f

请帮我找出出路。

0 个答案:

没有答案