|
chainliq
高级用户
    学无尽止
积分 635
发帖 244
注册 2006-4-15 来自 广西贵港
状态 离线
|
『楼 主』:
{已结}echo 如何定义内容输出
使用 LLM 解释/回答一下
mode con lines=15 cols=40
set /p str= 请输入要提取密码的QQ号码:
for /f "delims=- tokens=1*" %%i in (Z:\QQ\9QQ.txt) do if %%i==%str% echo 你要提取密码为:%%j
echo ========标记已卖出
@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
)
为什么这个会在输入完成后,生成的"已卖9QQ.txt"里面会有全部9QQ.txt的内容呢?
如何修改才能让它在 "已卖9QQ.txt" 只输出%str%输入的那一行呀!
请各位兄弟帮忙,谢谢 ~~~
Last edited by chainliq on 2007-1-11 at 05:55 AM ]
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 ]
|
|
2007-1-4 07:42 |
|
|
chainliq
高级用户
    学无尽止
积分 635
发帖 244
注册 2006-4-15 来自 广西贵港
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
哎,急用呀,哪位兄弟给个提示呀`~
Hey, urgent need, which brother can give a hint~
|
|
2007-1-4 09:25 |
|
|
chainliq
高级用户
    学无尽止
积分 635
发帖 244
注册 2006-4-15 来自 广西贵港
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
各位给我提示啊``````````我我我`````````
Everyone, give me a hint ah``````````I I I`````````
|
|
2007-1-5 02:21 |
|
|
echo
初级用户
 
积分 148
发帖 69
注册 2006-11-23
状态 离线
|
|
2007-1-5 04:08 |
|
|
chainliq
高级用户
    学无尽止
积分 635
发帖 244
注册 2006-4-15 来自 广西贵港
状态 离线
|
|
2007-1-8 05:12 |
|
|
kafen
初级用户
 
积分 97
发帖 43
注册 2005-7-25
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
为什么已结而不把解决方法说出来让大家学学呢?
Why has it been closed without stating the solution to let everyone learn?
|
|
2007-1-21 00:45 |
|
|
xcw00123
新手上路

积分 14
发帖 7
注册 2008-4-2
状态 离线
|
|
2008-4-7 10:13 |
|
|
aben
新手上路

积分 4
发帖 2
注册 2006-12-22
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
echo [on | off]
echo [message]
echo.
echo message > [driver:] [path] filename
@
//////////////////////////////////////////
说明
on | off
若设定为 ON 在执行批次档时会将正要执行的命令显示在屏幕,而设定为 OFF 则在执行时不会将正要执行的命令显示在屏幕上。 如果 ON | OFF 都省略不用时,将显示 ECHO 命令目前的状况
MESSAGE
是会显示在屏幕上的信息。使用 ECHO. 命令在屏幕上会空出一列。
>[drive:] [path] filename
做输出转向处理,而 >[drive:] [path] filename 指定存放档的所在和档名
@ 在批次档中 @ 后的命令将不显示在屏幕上
echo
echo
echo.
echo message > filename
@
//////////////////////////////////////////
Description
on | off
If set to ON, the command being executed will be displayed on the screen when the batch file is executed. If set to OFF, the command being executed will not be displayed on the screen when executed. If neither ON nor OFF is omitted, the current status of the ECHO command will be displayed
MESSAGE
is the information that will be displayed on the screen. Using the ECHO. command will leave a blank line on the screen.
> filename
Performs output redirection, and > filename specifies the location and filename of the storage file
@ In the batch file, the command after @ will not be displayed on the screen
|
|
2008-5-15 18:31 |
|