按照zw19750516的方法,将(a b c d)改为文本文件并小作修改,试验成功!
感谢zw19750516,感谢DOS联盟!!!
cls
::echo off
if exist MakeTMP.inf del /q MakeTMP.inf
setlocal enabledelayedexpansion
for /f "delims= tokens=*" %%i in (Hivedef.inf) do (
set n=1
for /f "eol=[ tokens=*" %%j in (MakeEdit.txt) do if "%%i"=="%%j" set n=0
if !n! equ 1 echo %%i>>MakeTMP.inf
)
::del /q Hivedef.inf&&ren MakeTMP.inf Hivedef.inf
if exist MakeTMP.inf (start MakeTMP.inf) else @echo MakeTMP.inf文件不存在
endlocal
还剩下一个HIVESYS.INF文件,将INSTALL_LANGUAGE="0804"一行改成INSTALL_LANGUAGE="804"的问题。仅仅去掉一个0,但技术上实现不仅仅是过滤删除,还要插入行,感觉比较难。好在入门了,慢慢研究。
感谢zw19750516,感谢DOS联盟!!!
cls
::echo off
if exist MakeTMP.inf del /q MakeTMP.inf
setlocal enabledelayedexpansion
for /f "delims= tokens=*" %%i in (Hivedef.inf) do (
set n=1
for /f "eol=[ tokens=*" %%j in (MakeEdit.txt) do if "%%i"=="%%j" set n=0
if !n! equ 1 echo %%i>>MakeTMP.inf
)
::del /q Hivedef.inf&&ren MakeTMP.inf Hivedef.inf
if exist MakeTMP.inf (start MakeTMP.inf) else @echo MakeTMP.inf文件不存在
endlocal
还剩下一个HIVESYS.INF文件,将INSTALL_LANGUAGE="0804"一行改成INSTALL_LANGUAGE="804"的问题。仅仅去掉一个0,但技术上实现不仅仅是过滤删除,还要插入行,感觉比较难。好在入门了,慢慢研究。
