当前位置:网站首页>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 .
边栏推荐
- Position encoding practice in transformer
- 线程池的使用和原理
- go-micro教程 — 第二章 go-micro v3 使用Gin、Etcd
- 【Go ~ 0到1 】 第六天 文件的读写与创建
- Two methods of MD5 encryption
- Smart Logistics Park supply chain management system solution: digital intelligent supply chain enables a new supply chain model for the logistics transportation industry
- Redis 的内存淘汰策略和过期删除策略的区别
- Hash table
- 基于check-point机制的任务状态回滚和数据分块任务
- Integration of ongdb graph database and spark
猜你喜欢
World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection
Visual studio 2019 (localdb) mssqllocaldb SQL Server 2014 database version is 852 and cannot be opened. This server supports 782
go-micro教程 — 第二章 go-micro v3 使用Gin、Etcd
Load test practice of pingcode performance test
7 RSA密码体制
建筑建材行业经销商协同系统解决方案:赋能企业构建核心竞争力
昆明三环闭合工程将经过这些地方,有在你家附近的吗?
Difference between redis' memory obsolescence strategy and expiration deletion strategy
Kunming Third Ring Road Closure project will pass through these places. Is there one near your home?
从数数开始
随机推荐
Overflow: the combination of auto and Felx
Solution of dealer collaboration system in building materials industry: empowering enterprises to build core competitiveness
Which domestic cloud management platform manufacturer is good in 2022? Why?
2022年国内云管平台厂商哪家好?为什么?
Web game engine
Detailed process of DC-2 range construction and penetration practice (DC range Series)
GO开发:如何利用Go单例模式保障流媒体高并发的安全性?
The 18th IET AC / DC transmission International Conference (acdc2022) was successfully held online
基于check-point实现图数据构建任务
Height residual method
C# 服务器日志模块
leetcode刷题目录总结
Hash table
MD5加密的两种方式
Configuration instance of Oracle listener server and client
detectron2安装方法
Solution du système de gestion de la chaîne d'approvisionnement du parc logistique intelligent
NFT流动性市场安全问题频发—NFT交易平台Quixotic被黑事件分析
Go语言循环语句(第10课下)
Array filter fliter in JS