Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 683
  • Last Modified:

Find out most recent last saved time for a file in a directory tree - windows server 2008R2

I have a bunch of directories (all with multiple levels of sub-directories). I want to find out which directory (including the sub-dirs) is used the least, by when was the last time a file was saved in any of its sub-directories.

Basically, I want to know the most recent time a file was saved in a directory tree.

Using Windows Server 2008R2.
0
freshgrill
Asked:
freshgrill
1 Solution
 
David Johnson, CD, MVPOwnerCommented:
look for the modified date
0
 
NavdeepCommented:
Hi,

You can use powershell command for this

Get-childItem -Path p:\temp -Recurse | Select Name, LastAccessTime, LastWriteTime, DirectoryName

You can also export the data to csv file
Get-childItem -Path p:\temp -Recurse | Select Name, LastAccessTime, LastWriteTime, DirectoryName | export-csv -path FilePath -notypeinformation
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now