本帖最后由 pcl_test 于 2017-3-20 19:48 编辑
回复 30# eclairkk - @echo off
- setlocal enabledelayedexpansion
- type nul >AppList.ini.tmp
- for /f "delims=" %%i in ('dir /s/b/a-d *.7z') do (
- set line=%%i
- call :output
- )
-
- echo [copyright]>AppList.ini
- echo Author=有容乃大[YXG8855]>>AppList.ini
- echo MyBLOG=http://hi.baidu.com/yxg8855>>AppList.ini
- echo [config]>>AppList.ini
- echo num=!eNum!>>AppList.ini
- echo afterRun=>>AppList.ini
- type AppList.ini.tmp >>AppList.ini
- start cmd /c "call App.exe"
-
- exit
-
- :output
- set/p xz=是否解压%line% Y/N:
-
- if /i "%xz%"=="y" (
- set /a eNum+=1
- goto A
- ) else (
- goto B
- )
-
- :A
- echo !eNum!>>AppList.ini.tmp
- echo softname= %line%>>AppList.ini.tmp
- echo 7zPath=%line%>>AppList.ini.tmp
- echo diskpath=C:\Test>>AppList.ini.tmp
- :B
复制代码
|