【问题标题】:Windows Powershell: Display File Path along with Name and LastWriteTimeWindows Powershell:显示文件路径以及名称和 LastWriteTime
【发布时间】:2018-11-09 12:18:52
【问题描述】:

我使用的 Windows Powershell 代码非常好,但有一个警告。见下文:

PS F:\Bizfi> dir -r | Out-GridView | Select FullName, LastWriteTime

需要注意的是它不显示文件路径。有没有办法将文件路径包含在名称中或作为单独的属性?

谢谢

【问题讨论】:

  • dir -r | Select FullName, LastWriteTime | Out-GridView?
  • 谢谢!我想我只需要稍微切换一下。

标签: file powershell path directory


【解决方案1】:

如果你想模仿正常的 Get-ChildItem 输出:

dir -r | Select Mode,LastWriteTime,Length,Name,Fullname | Out-GridView

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-08-29
    • 2021-11-25
    • 2018-09-28
    • 2014-06-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多