%reg%我知道是输出后的变量复制代码
- @echo off
- for /f %%i in ('reg query "hku"^|findstr /c:"S-1-5-21"') do set reg=%%i
- set reg=%reg:~11,44%
- echo %reg%
我知道这样套用变量很笨复制代码
- Sed 's/aaaa/%reg%/g' a.txt >> ax.txt
- Del a.txt
- Ren ax.txt a.txt
欢迎光临 批处理之家 (http://bathome.net./) | Powered by Discuz! 7.2 |