
CODE: [Copy to clipboard]第二种方法,是 tireless 提供的,改进了我的做法,一步到位。精简。@Echo off
echo y|reg export HKEY_LOCAL_MACHINE\SOFTWARE\TENCENT\ 1.txt
for /f "tokens=1* delims==" %%i in ('find /I "QQ.exe" 1.txt') do set a=%%j
set %a%=%a:\\=\%
echo %a% >2.txt
CODE: [Copy to clipboard]@Echo off
echo y|reg export HKEY_LOCAL_MACHINE\SOFTWARE\TENCENT\ 1.txt
for /f "tokens=1* delims==" %%i in ('find /I "QQ.exe" 1.txt') do echo %%~fj >2.txt
CODE: [Copy to clipboard]@echo off
dir /b >%temp%\1.txt
Setlocal Enabledelayedexpansion
set /a m=0
set /a n=0
set /a a=0
for /f %%k in (%temp%\1.txt) do set /a a+=1
for /l %%i in (1 1 !a!) do (
set /a m+=1
for /f %%j in (%temp%\1.txt) do (
set /a n+=1
if !m!==!n! set b=%%i%%j&&if %%i lss 10 (rename "%%j" "0!b!") else rename "%%j" "!b!"
)
set /a n=0
)
endlocal
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |