List the Five Most-Recently Modified Files in a Folder

Lists the five most-recently modified files in a folder.

 
 
 
 
 
(0)
Add to favorites
Storage
8/10/2009
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • THE SCRIPT DOESN'T WORK
    2 Posts | Last post July 02, 2014
    • THE SCRIPT DOESN'T WORK
    • Chopping out part of the command makes it work:
      
      get-childitem -Recurse -Exclude CVS | sort-object -Property LastWriteTime -Descending | select-object -First 5 | format-table -Property LastWriteTime,FullName -Autosize