3

I have a file server (Windows 2003). I want to get a list of files and folders inside each drive, with their last access dates. I know, there are tools like treesize, but due to some reasons, I can not use them on this server.

Is there any command to get this list?

saumil
  • 31
  • 1
  • 1
  • 2

2 Answers2

3

Use the cmd command:

dir /s /ta

You can redirect the output to a file if you need to manipulate it with Windows programs.

AFH
  • 17,300
  • 3
  • 32
  • 48
2

open a powershell window and you can do this, and even sort on lastaccesstime. you can look up the command get-childitem and do more things with it.

gci -recurse . | select name,lastaccesstime,psparentpath |sort lastaccesstime
johnshen64
  • 4,593
  • 17
  • 11
  • note that updating the access time must be enabled: https://superuser.com/questions/251263/the-last-access-date-is-not-changed-even-after-reading-the-file-on-windows-7 – bebbo Mar 04 '19 at 09:58