title: Powershell and last modified date
body: <p>I am working in a windows environment.  </p>
  
  <p>I have a project that requires a short script to determine if a file with a modified date of today exists in a folder.  If the file exists, it should copy it, if a file does not exist, it should return an error code.</p>
  
  <p>I prefer to not use 3rd party apps.  I am considering powershell.</p>
  
  <p>I can pull a list to visually determine if the file exists, but I am having trouble batching to return an error if the count is zero.</p>
  
  <pre><code>Get-ChildItem -Path C:\temp\ftp\archive -Recurse | Where-Object  { $_.lastwritetime.month -eq 3 -AND $_.lastwritetime.year -eq 2013  -AND $_.lastwritetime.day -eq 21}
  </code></pre>
  
  <p>Any help is greatly appreciated!</p>