如何在bat里获得当前的系统时间戳

2024-12-04 11:45:50
推荐回答(1个)
回答(1):

@echo off
echo wscript.echo DateDiff("s", "01/01/1970 00:00:00", Now())>sjc.vbs
for /f %%i in ('cscript sjc.vbs /nologo') do echo %%i>sjc.vbs
ren sjc.vbs sjc.txt