摘要: 通过批处理自动创建schtasks系统任务,把下列代码保存成bat文件,放到要执行的文件的同级目录即可。@echo onset curpath=%cd%c:cd %systemroot%schtasks /create /tn WeatherSync_task /sc hourly /mo 1 /st 00:00:00 /ru "System" /tr %curpath%\filenameschtasks /run /tn WeatherSync_taskstart %systemroot%\taskspause注意:1、schtasks 命令必须在系统目录才可执行,所以在 阅读全文
posted @ 2013-05-24 17:25 peak 阅读(1627) 评论(0) 推荐(0) 编辑