实现很多程序能够实现的运行过程中自动升级,升级完成后自动打开升级后的程序
批处理:
:Repeat0
del DelTools.exe
if exist DelTools.exe goto Repeat0
Copy AutoUpdate.exe DelTools.exe
Del AutoUpdate.exe
start DelTools.exe
Del %0
本文介绍了一个简单的批处理脚本,用于实现程序在运行过程中的自动升级,并在升级完成后自动启动升级后的程序。该脚本通过删除旧版本、复制新版本并启动新程序来完成整个流程。
实现很多程序能够实现的运行过程中自动升级,升级完成后自动打开升级后的程序
批处理:
:Repeat0
del DelTools.exe
if exist DelTools.exe goto Repeat0
Copy AutoUpdate.exe DelTools.exe
Del AutoUpdate.exe
start DelTools.exe
Del %0

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