Python 当前离线
少校
apang 当前离线
上将
@echo off %1set "D=Year(Date)^&Right("0"^&Month(Date),2)^&Right("0"^&Day(Date),2)" %1mshta vbscript:CreateObject("WScript.Shell").Run("%~s0 :: "^&%D%)(Window.Close)&goto :eof echo,%2 pause 复制代码
TOP
terse 当前离线
中将
@echo off %1mshta vbscript:createobject("wscript.shell").run("%~fs0 : "^&year(date)*10000+Month(Date)*100+Day(Date))(close)&exit echo %2 pause>nul复制代码
@echo off set "D=Year(Date)^&Right("0"^&Month(Date),2)^&Right("0"^&Day(Date),2)" mshta vbscript:CreateObject("Scripting.FileSystemObject").CreateTextFile("a.txt",True).Write(%D%)(Window.Close)复制代码
batman 当前离线
考官
荣誉版主
CrLf 当前离线
论坛巡查
@echo off for /f %%i in ('WMIC OS GET LocalDateTime') do set str=%%i echo %str:~,8% pause复制代码
chok 当前离线
列兵
pcl_test 当前离线
for /f %%a in ('mshta VBScript:Execute("FmtDate=right(year(now),4)&right(""0""&month(now),2)&right(""0""&day(now),2):CreateObject(""Scripting.FileSystemObject"").GetStandardStream(1).Write FmtDate:close"^)') do echo;%%a复制代码