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

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

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

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

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 must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .