chenall发表于: 2007-04-06 22:55
- @echo off
- set tp=e:
- for /f "usebackq delims=" %%i in (config.ini) do (
- call echo %%i>>config.new
- )
- ren config.ini config.bak
- ren config.new config.ini
chenall 发表于: 2007-04-07 08:25
- @echo off
- ::设置TP的值
- set tp=e:\test
- setlocal enabledelayedexpansion
- for /f "usebackq delims=" %%i in (config.ini) do (
- set .=%%i
- echo !.:E:\=%TP%\!>>config.new
- )
- ren config.ini config.bak
- ren config.new config.ini
- endlocal
原帖由 chenall 于 2007-4-6 10:56 PM 发表
看完你的贴子我还不明白,你到底是要把
E:\MPUI\MPUI.exe修改为%TP%\MPUI\MPUI.exe
还是
%TP%\MPUI\MPUI.exe修改为E:\MPUI\MPUI.exe
我猜应该是第二种情况吧.按你最后一行的说法.
早上过来,再看了一下 ...
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |