![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-10-31 14:51 |
47,815 topics / 349,930 posts / today 0 new / 48,290 members |
| DOS开发编程 & 发展交流 (开发室) » {Closed}How to define content output |
| Printable Version 2,796 / 7 |
| Floor1 chainliq | Posted 2007-01-04 07:42 |
| 高级用户 Posts 244 Credits 635 From 广西贵港 | |
|
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 ] |
|
| Floor2 chainliq | Posted 2007-01-04 09:25 |
| 高级用户 Posts 244 Credits 635 From 广西贵港 | |
|
Hey, urgent need, which brother can give a hint~
|
|
| Floor3 chainliq | Posted 2007-01-05 02:21 |
| 高级用户 Posts 244 Credits 635 From 广西贵港 | |
|
Everyone, give me a hint ah``````````I I I`````````
|
|
| Floor4 echo | Posted 2007-01-05 04:08 |
| 初级用户 Posts 69 Credits 148 | |
| Floor5 chainliq | Posted 2007-01-08 05:12 |
| 高级用户 Posts 244 Credits 635 From 广西贵港 | |
| Floor6 kafen | Posted 2007-01-21 00:45 |
| 初级用户 Posts 43 Credits 97 | |
|
Why has it been closed without stating the solution to let everyone learn?
|
|
| Floor7 xcw00123 | Posted 2008-04-07 10:13 |
| 新手上路 Posts 7 Credits 14 | |
| Floor8 aben | Posted 2008-05-15 18:31 |
| 新手上路 Posts 2 Credits 4 | |
|
echo [on | off]
echo [message] echo. echo message > [driver:] [path] 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. >[drive:] [path] filename Performs output redirection, and >[drive:] [path] filename specifies the location and filename of the storage file @ In the batch file, the command after @ will not be displayed on the screen |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |