回复 9# cwayne
chatgpt- @echo off
- set "filename=path\to\your\file" REM 将“path\to\your\file”替换为您要查询的文件路径
-
- for /f "delims=" %%a in ('powershell -Command "(Get-Item '%filename%').LastWriteTime.ToString('yyyy-MM-dd HH:mm:ss')"') do set "last_modified_time=%%a"
- echo %last_modified_time%
- pause
复制代码
|