启动程序,到达指定时刻,自动弹出弹窗,此处消息为"sign in class!!!"
h为系统现在小时,m为系统现在分钟
::为注释标记,%此处时间设置%亦为注释标记
/time:6000 为6000秒后自动关闭弹窗
@echo off
:A
set h=%time:~0,2%
set m=%time:~3,2%
::echo %h%
::echo %m%
%此处进行时间设置%
if %h%==17 (
if %m%==20 (
msg %username% /time:6000 %time% sign in class!!!
) else (
goto A
)
) else (
goto A
)
解决bat程序中文乱码
- txt格式打开程序,查看编码格式

- 将文件另存为ANSI格式即可

5万+




被折叠的 条评论
为什么被折叠?



