wmic datafile where name="D:\\test1.txt" get LastModified
Thanks, Neemobeer! Conveniently, it also supports wildcard selection.PowerShell is going to be a lot easier and is the preferred method.
You can access any property in multiple ways. As an example if all you want is the lat modified time
Code:Get-Item -Path C:\folder\or\file\path (Get-Item -Path C:\folder\or\file\path).LastWriteTime
dir * | select name,LastWriteTime,CreationTime,LastAccessTime
Name LastWriteTime LastAccessTime CreationTime
---- -------------...
Get-Item -Path C:\folder\or\file\path
(Get-Item -Path C:\folder\or\file\path).LastWriteTime
Thanks, Neemobeer! Conveniently, it also supports wildcard selection.PowerShell is going to be a lot easier and is the preferred method.
You can access any property in multiple ways. As an example if all you want is the lat modified time
Code:Get-Item -Path C:\folder\or\file\path (Get-Item -Path C:\folder\or\file\path).LastWriteTime
dir * | select name,LastWriteTime,CreationTime,LastAccessTime
Name LastWriteTime LastAccessTime CreationTime
---- ------------- -------------- ------------
example.202211182130.mhtml 18.11.2022 21:30:33 03.12.2022 11:39:06 18.11.2022 21:30:33
example.202211182138.mhtml 18.11.2022 21:38:18 03.12.2022 11:39:06 18.11.2022 21:38:18
example.202211182153.mhtml 18.11.2022 21:53:32 03.12.2022 11:39:06 18.11.2022 21:53:31
example.202211201304.mhtml 20.11.2022 13:04:38 03.12.2022 11:39:06 20.11.2022 13:04:38
example.202211201318.mhtml 20.11.2022 13:18:33 03.12.2022 11:39:06 20.11.2022 13:18:33