Board logo

标题: [结案]求助! dir 指令可否显示档案日期到秒 ? [打印本页]

作者: pdanniel66     时间: 2010-1-24 17:57    标题: [结案]求助! dir 指令可否显示档案日期到秒 ?
C:\>dir c:\temp
2010/01/24 11:51 318 date01.bat
2010/01/24 11:55 13 date01.log

Last edited by pdanniel66 on 2010-1-24 at 19:30 ]

作者: HAT     时间: 2010-1-24 18:33
wmic可以

作者: pdanniel66     时间: 2010-1-24 19:28    标题: 谢谢 HAT版主为我解答!
谢谢 HAT版主为我解答!
wmic datafile where "drive='d:' and path='\\123\\' and FileName='listOldFile' and Extension='cmd'" list

==> 20090627095325.406250+480

output as below:

AccessMask Archive Caption Compressed CompressionMethod CreationClassName CreationDate CSCreationClassName CSName Description Drive EightDotThreeFileName Encrypted EncryptionMethod Extension FileName FileSize FileType FSCreationClassName FSName Hidden InstallDate InUseCount LastAccessed LastModified Manufacturer Name Path Readable Status System Version Writeable
18809343 TRUE d:\temp\listoldfile.cmd FALSE CIM_LogicalFile 20090627095325.406250+480 Win32_ComputerSystem NB d:\temp\listoldfile.cmd d: d:\temp\listol~1.cmd FALSE cmd listOldFile 881 Windows NT Command Script Win32_FileSystem NTFS FALSE 20090627095325.406250+480 20090627095325.406250+480 20090627093759.328125+480 d:\temp\listoldfile.cmd \temp\ TRUE OK FALSE TRUE

Last edited by pdanniel66 on 2010-1-24 at 19:31 ]