我要在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
请帮我找出出路。