Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Where's the Seconds in the DOS DIR Command Output?  (Read 9116 times)

0 Members and 1 Guest are viewing this topic.

gerdman

  • Guest
Where's the Seconds in the DOS DIR Command Output?
« on: March 26, 2007, 01:24:12 PM »
I have a need to use the DOS DIR command to show me all the files in a directory and I need to see the TIME the file was last updated all the way down to the seconds.  Maybe I shouldn't be using the DIR command?  Using any DOS prompt command, how can I see the last update time (in seconds) for all files in a directory?

lordoftheplat



    Hopeful

  • teh god.
  • Thanked: 1
    Re: Where's the Seconds in the DOS DIR Command Output?
    « Reply #1 on: March 28, 2007, 03:55:00 AM »
    what u mean all files in a directory do u mean like all files in c drive
    If u mean that u can do this

    dir /s c:\*.*
    zepperblood.deviantart.com

    WillyW



      Specialist
    • Thanked: 29
    • Experience: Experienced
    • OS: Windows XP
    Re: Where's the Seconds in the DOS DIR Command Output?
    « Reply #2 on: March 28, 2007, 09:56:38 AM »
    what u mean all files in a directory do u mean like all files in c drive
    If u mean that u can do this

    dir /s c:\*.*

    This will not do what the original poster asked for.

    See the description of the /s  switch here:
    http://www.computerhope.com/dirhlp.htm


    .



    lordoftheplat



      Hopeful

    • teh god.
    • Thanked: 1
      Re: Where's the Seconds in the DOS DIR Command Output?
      « Reply #3 on: March 29, 2007, 02:26:59 AM »
      oh wait my bad lol he wants it in seconds
      zepperblood.deviantart.com

      Computer Hope Admin

      • Administrator


      • Prodigy

        Thanked: 248
        • Yes
        • Yes
        • Yes
        • Computer Hope
      • Certifications: List
      • Computer: Specs
      • Experience: Guru
      • OS: Windows 10
      Re: Where's the Seconds in the DOS DIR Command Output?
      « Reply #4 on: March 29, 2007, 03:19:41 AM »
      To my knowledge this is not possible with the standard MS-DOS dir command or other commands. You'd need to get a third-party utility such as mdir to get this type of information and other more detailed information about modification time.

      Doing a quick search I found the utility on the below link.

      http://www.highfiber.com/~raster/mdir.zip
      Everybody is a genius. But, if you judge a fish by its ability to climb a tree, it will spend its whole life believing that it is stupid.
      -Albert Einstein