【发布时间】:2020-10-27 14:55:05
【问题描述】:
这是基于另一个问题:https://stackoverflow.com/a/9675811/14529561。
如何传递来自gci path | sort LastWriteTime | select -last 1 的结果并使用 explorer.exe 打开?
我试过了:
$wd = gci path | sort LastWriteTime | select -last 1;
explorer $wd
gci path | sort LastWriteTime | select -last 1 | Format-Table -hidetableheaders | explorer $_.
gci path | sort LastWriteTime | select -last 1 | Format-Table -hidetableheaders | ii $_.
不幸的是,以上所有内容都给我错误。
【问题讨论】:
标签: powershell scripting