- @echo off
- setlocal enabledelayedexpansion
- echo @echo off>666.txt
- for /f "delims=*" %%a in ('type 4.reg') do (
- set k=%%a
- set k=!k:777=999!
- set k=!k:aaaaaa=bbbbbb!
- echo echo !k! >>666.txt
- echo !k!|find "999"&&echo echo ^; 字符串"777"替换"999"成功 >>666.txt
- echo !k!|find "bbbbbb"&&echo echo ^; 字符串"aaaaaa"替换"bbbbbb"成功 >>666.txt
- )
- echo pause>>666.txt
- pause
复制代码
|