自解压包相关
- 删除文件
- 创建文件夹
- 使用
7z压缩 - 使用
sfx打包
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
@echo off setlocal cd /d "%~dp0" if exist temp.7z del /f /q temp.7z if exist EasyInst.exe del /f /q EasyInst.exe if exist "%~dp0Bin\EasyInst.exe" del /f /q "%~dp0Bin\EasyInst.exe" set "TargetDir=Bin" if not exist "%TargetDir%" mkdir "%TargetDir%" if not exist "temp" ( echo Error: temp directory does not exist exit /b 1 ) if not exist "%~dp07zr.exe" ( echo Error: 7zr.exe not found in %~dp0 exit /b 1 ) "%~dp07zr.exe" a temp.7z ./temp/*.* -r -mx=9 if errorlevel 1 ( echo Error: 7z compression failed exit /b 1 ) copy /b 7zSD.sfx + config.txt + temp.7z "%~dp0Bin\EasyInst.exe" echo Build completed successfully exit /b 0 |
声明:本文为原创文章,版权归Aet所有,欢迎分享本文,转载请保留出处!
你可能也喜欢
- ♥ CMD应用记述二07/07
- ♥ 实用操作一10/02
- ♥ 实用操作二06/15
- ♥ Reading 2021 《肖申克的救赎》12/22
- ♥ 2020_11_2302/17
- ♥ Dump分析:调试方法与实践,空指针访问03/15