Simple PowerShell LastWriteTime compare

前端 未结 7 875
我寻月下人不归
我寻月下人不归 2021-02-12 08:42

I need a PowerShell script that can access a file\'s properties and discover the LastWriteTime property and compare it with the current date and return the date differe

7条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-12 08:55

    (ls $source).LastWriteTime
    

    ("ls", "dir", or "gci" are the default aliases for Get-ChildItem.)

提交回复
热议问题