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

Author Topic: A "dir" command that can display file cr  (Read 2186 times)

0 Members and 1 Guest are viewing this topic.

JMMD

  • Guest
A "dir" command that can display file cr
« on: October 12, 2005, 09:18:00 AM »
I need to display file create time including milliseconds. Is there anyway to do this in DOS or Windows?

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: A "dir" command that can display fil
« Reply #1 on: October 12, 2005, 03:31:58 PM »
Probably not. dir /tc will get it accurate to the minute. This little snippet will get you down to seconds:

Code: [Select]

Set fso = CreateObject("Scripting.FileSystemObject")
set f = fso.getFolder("Folderspec")
set fc = f.files

For Each fs in fc
     Wscript.Echo fs.Name & " " & fs.DateCreated
Next


Fill in FolderSpec with something valid. Save as a VBS File and run as cscript ScriptName.vbs

As far as milliseconds go you're on your own.

Happy Computing.  8)
« Last Edit: October 12, 2005, 03:34:18 PM by Sidewinder »
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein