新公司要求每天写日报,这对于从没写过的我来说有点小难受,还经常忘记,查了一圈弄了个定时任务。
python脚本:
import tkinter
import tkinter.messagebox
if __name__=="__main__":
top = tkinter.Tk()
top.withdraw()
top.update()
tkinter.messagebox.showinfo('info','快下班了,记得写日报!')
tkinter.messagebox.showinfo('info','再忘记写你就是哈卵!')
bat脚本:
python message.py
执行bat效果:
vbs脚本(执行bat不显示cmd窗口):
Set shell = Wscript.createobject("wscript.shell")
a = shell.run ("E:warningwarning.bat",0)
执行vbs效果:
最后是设置windows的定时任务了:



