回复 6# pcl_test
OK我知道怎么改了,是输出到临时文件路径的问题:- @echo off
- Setlocal enabledelayedexpansion
-
- set str=D:\
- pushd %str%
- for /f "delims=" %%i in ('dir /a-d /s /b *.ini') do (
- for /f "usebackq delims=" %%j in ("%%i") do (
- set a=%%j
- set aa=!a:1234/root=root!
- echo !aa!>>"%%~dpi\tmp_%%~nxi"
- )
- move /y "%%~dpi\tmp_%%~nxi" "%%i"
- )
- pause
复制代码 这样就可以了
谢版主大大~ |