逆流而上的熊猫 当前离线
列兵
flyinnet9 当前离线
少尉
TOP
pcl_test 当前离线
荣誉版主
@echo off for /f "usebackq tokens=1* delims==" %%a in ("E:\注册码.txt") do ( >"D:\%%a\kss.ini" (echo;[注册码]&echo;注册码=%%b) ) 2>nul pause复制代码
@echo off for /f "usebackq tokens=1* delims==" %%a in ("E:\注册码.txt") do ( sed -i "s/机器编码=.*/机器编码=%%b/" "D:\%%a\kss.ini" ) 2>nul pause复制代码
@echo off set "keyfile=E:\注册码.txt" for /f "tokens=1,2 delims==" %%a in (%keyfile%) do ( for /f "delims=" %%c in (d:\%%a\kss.ini) do ( echo %%c >%tmp%\aa find "机器编码" aa && echo 机器编码=%%b >>d:\%%a\tmp || echo %%c >>d:\%%a\tmp ) del d:\%%a\kss.ini ren d:\%%a\tmp kss.ini )复制代码