dos command to get seconds in file timestamp

Microsoft Works for ms dos
May 11, 2010 at 07:11:28
Specs: Windows XP
I need to be able to write a dos script to extract the file timesatmp including seconds information also.
I am using for /R %%X in (*.xml) do (@echo %%~tnxX ...but this does not give me seconds

See More: dos command to get seconds in file timestamp

Report •

#1
May 11, 2010 at 08:15:19
Neither FOR nor DIR gives you the resolution you're looking for. VBScript, however, does:
Set fso = CreateObject("Scripting.FileSystemObject")
For Each f In fso.GetFolder(".").Files
  If LCase(fso.GetExtensionName(f)) = "xml" Then _ 
    WScript.Echo f.DateLastModified & " - " & f
Next 


Report •
Related Solutions


Ask Question