我想搜索文件夹中的文件,并通过单击Out-Gridview上的确定按钮打开它
gci | Out-GridView -PassThru | Select Name我尝试使用StartProcess,但我需要提供文件名。我不知道如何从out-gridview获取文件名并将其粘贴到Start-Process -FilePath中
发布于 2019-07-14 01:19:47
您可以使用Invoke-Item。它使用默认的处理程序打开一个文件。
Get-ChildItem -File | Out-GridView -PassThru |
Select-Object -ExpandProperty FullName | Invoke-Itemhttps://stackoverflow.com/questions/57021033
复制相似问题