【发布时间】:2011-05-25 21:48:07
【问题描述】:
有没有比这更短的方法在 Powershell 中通过一个命令将多个属性设置为相同的值?
例子:
(gi "c:\test.txt").LastWriteTime = (gi "c:\test.txt").LastAccessTime = (gi "c:\test.txt").CreationTime = Get-date
我只是好奇是否有办法缩短这种语法。
【问题讨论】:
标签: syntax powershell