mode con lines=15 cols=40
set /p str=Please enter the QQ number for which you want to extract the password:
for /f "delims=- tokens=1*" %%i in (Z:\QQ\9QQ.txt) do if %%i==%str% echo The password you want to extract is: %%j
echo ========Marked as sold
@ECHO %dbg% OFF
setlocal ENABLEDELAYEDEXPANSION
FOR /F %%i in (Z:\QQ\9QQ.txt) do (
SET STR=%%i
SET STR=!STR:%str%=%str%已卖出!
ECHO !STR!>>Z:\QQ\已卖9QQ.txt
)
Why does this generate all the contents of 9QQ.txt in "已卖9QQ.txt" after entering?
How to modify it so that only the line where %str% is entered is output in "已卖9QQ.txt"!
Please help, brothers ~~~
[ Last edited by chainliq on 2007-1-11 at 05:55 AM ]
set /p str=Please enter the QQ number for which you want to extract the password:
for /f "delims=- tokens=1*" %%i in (Z:\QQ\9QQ.txt) do if %%i==%str% echo The password you want to extract is: %%j
echo ========Marked as sold
@ECHO %dbg% OFF
setlocal ENABLEDELAYEDEXPANSION
FOR /F %%i in (Z:\QQ\9QQ.txt) do (
SET STR=%%i
SET STR=!STR:%str%=%str%已卖出!
ECHO !STR!>>Z:\QQ\已卖9QQ.txt
)
Why does this generate all the contents of 9QQ.txt in "已卖9QQ.txt" after entering?
How to modify it so that only the line where %str% is entered is output in "已卖9QQ.txt"!
Please help, brothers ~~~
[ Last edited by chainliq on 2007-1-11 at 05:55 AM ]
