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.

The 'dir' command has a /T switch which selects whether to display the creation, access or modification time. However, it doesn't seem to be able to list files along with all three dates for each file -- how can I do this?

share|improve this question

3 Answers 3

if you can use Powershell, ls | fl (powershell ls^|fl from cmd) will show those (among others). You can include only props you need:
ls | fl -prop name, creationTime,lastAccessTime,LastWriteTime.
Use ls | get-member to see available properties

share|improve this answer

You can’t do that with the Windows command-prompt itself; it only supports a single timestamp column, but you could try third-party alternatives like 4DOS or Console (formerly known as Console 2). In fact, open-source ones like Console are best because you can request the feature (technically Console doesn’t replace the command-interpreter itself, but I’m sure they can extend some commands like this).

share|improve this answer

It is not possible in MS-DOS. You can only use one time field (C or A or W) for T at a time.

share|improve this answer
    
They’re not asking about DOS, they only added that tag erroneously instead of the command-prompt tag (which is redundant anyway since they already used the dir tag). Besides, the title clearly says on windows. –  Synetech Sep 1 '12 at 23:14

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.