net time \\10.103.8.33 /set /y 设置 时钟同步机器局域网
---------------------------------------------------
可以定时启动一个 指定程序。也可以添加windows,任务计划
@echo off
:main
::关闭程序
taskkill /F /IM 取色器.exe
echo 程序关闭
::延时
ping localhost -n 5 >nul
::启动
start "test" "d:\取色器.exe"
::延时
ping localhost -n 5 >nul
exit
-------------------------------------------------------
---------------------------------------------------
可以定时启动一个 指定程序。也可以添加windows,任务计划
@echo off
:main
::关闭程序
taskkill /F /IM 取色器.exe
echo 程序关闭
::延时
ping localhost -n 5 >nul
::启动
start "test" "d:\取色器.exe"
::延时
ping localhost -n 5 >nul
exit
-------------------------------------------------------
本文介绍如何使用批处理脚本实现定时启动指定程序,并进行关闭、延时等基本操作,适用于Windows环境。

被折叠的 条评论
为什么被折叠?



