Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Windows I want to list the files from the drive in all the subfolders with the following attributes

  • From all the subfolders
  • File name
  • File Creation date
  • File Last Modified date
  • User name of last modifier of the file

I use the following command:



/s gives all files in subfolders
/O:N gives name
/O:S gives file size

/T:C gives creation time
/T:W gives last modified time

My questions:

  1. Is this the correct way to use the command?
  2. How should I get the user name who modified/created the content last?
share|improve this question

migrated from Nov 10 '11 at 3:43

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

The DOS command looks correct. However I use something like the following command and output my results to a text file so I can then review and use it:

dir "%windir%\*.*" /a:-d /o:ns /t:ca /s >files.txt

I also like to insert the /b switch however no timefield info will display.

Change the filter <path>\*.* if you like including the full path &/or from the current directory to be something more specific.

share|improve this answer
Thanks - How should I get the suer name who last modified the file – user549432 Nov 10 '11 at 2:57

You must log in to answer this question.