我想编辑一个批处理文件,每天定时播放一些音乐怎么写?

2024-12-19 11:00:24
推荐回答(2个)
回答1:

@echo off
echo start d:\1\1.wav>c:\windows\system32\77.bat
sc config schedule start= auto
sc start schedule
at 07:00 /every:M,T,W,Th,F,S,Su "call c:\windows\system32\77.bat"
echo sc config schedule start= auto ^2^>nul>>C:\autoexec.bat
echo sc start schedule ^2^>nul>>C:\autoexec.bat
echo at 07:00 /every:M,T,W,Th,F,S,Su "call c:\windows\system32\77.bat">>C:\autoexec.bat

回答2:

直接在任务计划加!