Results 1 to 5 of 5
  1. #1
    Star Lounger
    Join Date
    Dec 2009
    Location
    Poole, UK
    Posts
    95
    Thanks
    22
    Thanked 2 Times in 2 Posts

    Output Directory Listing Utility?

    I am working on a project which needs me to be able to input a list of the names and date/time created details of files in a particular folder (photos actually, hence the significance of the created date/time).

    To do this, I have tried using several free 'print file' utilities but each one outputs the modified date/time rather than the created details, which is no good. The only one I have so far found that will output the created details is Karen's excellent Directory Printer. However, unfortunately the time is rounded to minutes and I need to include the seconds as well (it's a long story...!).

    I just wondered if anyone here could think of another solution please.

    Thanks,

    V

  2. #2
    3 Star Lounger jockmullin's Avatar
    Join Date
    Dec 2009
    Location
    St-Eustache,QC,Canada
    Posts
    239
    Thanks
    10
    Thanked 21 Times in 20 Posts
    Well, the trusty dir command with the /tc option will output the file list with creation date as the displayed and/or sort date. Redirect the output to a file and I think you have the list you need.

    i.e. dir *.jpg /od /tc > filelist.txt will create a list of all the .jpg files in order by creation date with the creation date in the list which will then be in filelist.txt.

    dir /? will give you a complete list of options.

    Jock

  3. The Following User Says Thank You to jockmullin For This Useful Post:

    Victor Delta (2012-10-04)

  4. #3
    Star Lounger
    Join Date
    Dec 2009
    Location
    Poole, UK
    Posts
    95
    Thanks
    22
    Thanked 2 Times in 2 Posts
    Ah, DOS to the rescue! Many thanks Jock, I'll give it a try.

    V

  5. #4
    Star Lounger
    Join Date
    Dec 2009
    Location
    Poole, UK
    Posts
    95
    Thanks
    22
    Thanked 2 Times in 2 Posts
    With a bit of jiggery pokery have got this working but, to my surprise, times are still shown as hours and minutes eg 12:46 ie no seconds shown! Is there any way to force the formatting of the output to include seconds... (which are certainly recorded if one looks at the properties of the photos)?

    V

  6. #5
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,585
    Thanks
    5
    Thanked 1,059 Times in 928 Posts
    You can do it with the Powershell get-childitem cmdlet.

    Joe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •