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

2 Answers2

4

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,958
4

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,701