当前位置:网站首页>Using win10 scheduling task program to automatically run jar package at fixed time
Using win10 scheduling task program to automatically run jar package at fixed time
2022-07-04 17:16:00 【@Big bear_】
utilize win10 The scheduled task program runs automatically on a regular basis jar package
1. Preparation before start
- .config Profile directory ( my java One will be read in the program .config Configuration files in the folder , You wrote it according to yourself java Procedure dependent , Negligible )
- Their own jar package
- Create a new empty run.bat Script
Pictured :
2. To write run.bat The script content
Notepad open , Input execution jar The order of , And save .
Such as :
java -jar D:\OneDrive\Desktop\update-tools\boot-01-helloworld-1.0.jar
3. Open task scheduler
stay windows Search box for " Task scheduler ", And open .
Create a new folder , Pictured :
Create tasks -> routine , Pictured :
Select trigger -> newly build , Pictured :
Select operation -> newly build , Pictured :
In the picture 5 Step is important , If you are like me , Compiling java One will be read in the program .config Configuration files in the folder , here ** From :** You need to fill in the path of jar and .config The path of the folder , If you write java There is no need to read the configuration file in the program , You can run here without filling jar package , But it is not clear whether it will affect the final effect of the program , Please fill in all the suggestions .Finally, confirm , You can wait for the program to run .
Running results :
( The time in the picture is not right , It's because it's the picture I cut before )
end
If there are mistakes , Please ax .
边栏推荐
猜你喜欢
go-micro教程 — 第二章 go-micro v3 使用Gin、Etcd
Object.keys()的用法
Object. Usage of keys()
照明行业S2B2B解决方案:高效赋能产业供应链,提升企业经济效益
leetcode:421. The maximum XOR value of two numbers in the array
DataKit——真正的统一可观测性 Agent
Readis configuration and optimization of NoSQL (final chapter)
2022PMP考试基本情况详情了解
7 RSA密码体制
Visual studio 2019 (localdb) mssqllocaldb SQL Server 2014 database version is 852 and cannot be opened. This server supports 782
随机推荐
Unity interview questions (continuously updated)
Inside and outside: flow chart drawing elementary: six common mistakes
安信证券手机版下载 网上开户安全吗
建筑建材行业经销商协同系统解决方案:赋能企业构建核心竞争力
How to choose one plus 10 pro and iPhone 13?
overflow:auto与felx结合的用法
Jump table instance
PingCode 性能测试之负载测试实践
tx.origin安全问题总结
太方便了,钉钉上就可完成代码发布审批啦!
Array filter fliter in JS
Can you really use MySQL explain?
智慧物流园区供应链管理系统解决方案:数智化供应链赋能物流运输行业供应链新模式
Rebalance operation in spark and its difference from repartition operation
TP configuring multiple databases
System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
最大子数组与矩阵乘法
[Acwing] 58周赛 4490. 染色
被PMP考试“折磨”出来的考试心得,值得你一览
Smart Logistics Park supply chain management system solution: digital intelligent supply chain enables a new supply chain model for the logistics transportation industry