用cmd在指定日期及时间添加任务计划

2025-03-15 00:36:58
推荐回答(3个)
回答1:

ps.

查看:

回答2:

echo off
for /F "tokens=1-2" %%a IN ("%date%") do (set formatdate=%%a)
:begin
for /f "tokens=1-2 delims=/:" %%a in ("%time%") do (set formattime=%%a:%%b)
if %formatdate%=="01/01/2000" goto begin
if %a%=="01:01" shutdown -s -t 1
goto begin
PAUSE

回答3:

你不是知道了吗
at 时间 CMD命令
不明白的话
at /?