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
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
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |