Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

get all files having last write time today

$
0
0
Hi, I want to get files only having last_write_time equal to today. The command i am trying:


Get-ChildItem $source | where-object {$_.LastWriteTime -ge (Get-Date).adddays(-1)}


Problem is, it's bringing few files from yesterday as well.



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>