本帖最后由 老刘1号 于 2017-11-21 22:14 编辑
需要管理员权限- Call :EditIni "%~dp0my.ini" mysqld "lower_case_table_names=,lower_case_table_names = 2"
- GOTO :Eof
- :EditIni
- @Echo off
- Pushd %Tmp%
- (For %%a in (
- "[Version]"
- "Signature=$Chicago$"
- "[DefaultInstall]"
- "UpdateInis=2333"
- "[2333]"
- ) Do Echo %%~a)>.\inftmp.Inf
- Echo "%~1","%~2",%~3 >>.\inftmp.Inf
- RUNDLL32 SETUPAPI.DLL,InstallHinfSection ^
- DefaultInstall 128 .\inftmp.INF
- Popd
复制代码 来自:INF文件在批处理中的应用 |