1,Schtasks,任务计划命令
/create 创建任务计划
/tn task name
/tr task run
/st start time
/ed end date
/sc schedule type 任务类型,比如每天,每周,每月。。。
eg:
schtasks /create /tn "aaaScan" /tr %app_home%\aaa.bat /sc daily /st 08:00
/ed 2015/12/31
可用于bat控制任务计划程序;官方手册
2,bat处理路径相关
echo 当前盘符:%~d0;
echo 当前路径:%cd%;
echo 当前执行命令行:%0;
echo 当前bat文件路径:%~dp0;
echo 当前bat文件短路径:%~sdp0;