Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

DIR /S /O:NS /T:CAW

and

/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 stackoverflow.com Nov 10 '11 at 3:43

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.