|
yaotoo1024
新手上路

积分 16
发帖 6
注册 2006-12-15
状态 离线
|
『楼 主』:
如何用debug 编出一个回车的命令?
使用 LLM 解释/回答一下
请问各位高手是如何实现的
May I ask all the experts how it is achieved
|
|
2006-12-15 12:57 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
为什么要编一个回车的命令?没有明白兄的意思?
Why do we need to compile a command for carriage return? I don't understand what the brother means?
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-12-15 22:28 |
|
|
yaotoo1024
新手上路

积分 16
发帖 6
注册 2006-12-15
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
我想把前一个命令的结果放到第二个命令里去
而一个命令的结果是回车
我不会怎么实现这个回车
I want to put the result of the previous command into the second command, and the result of one command is a carriage return. I don't know how to implement this carriage return.
|
|
2006-12-16 00:18 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
使用管道符号就可以轻松解决了。
比如:echo cn-dos|find "cn"
You can easily solve it using the pipe symbol.
For example: echo cn-dos|find "cn"
|
|
2006-12-16 00:35 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
可以通过管道“|”操作,将前一个命令的结果“给”第二个命令“接收”~:)
具体操作也要看前一个命令是什么?(是批处理的输出,还是命令执行后的输出)。
还要看后一个命令是什么(是可以接收文本文件中的命令-如FTP,还是可以接收参数等……)
You can use the pipe "|" operation to "give" the result of the previous command to the second command for "receiving" ~:)
Specific operations also depend on what the previous command is? (Is it the output of a batch process or the output after a command is executed).
Also depends on what the next command is (is it something like FTP that can receive commands from a text file, or can receive parameters, etc....)
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-12-16 00:36 |
|
|
yaotoo1024
新手上路

积分 16
发帖 6
注册 2006-12-15
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
前一个命令的结果是回车
这个回车是怎么实现的呀
后一个命令是在中途要接回车才能实现的
The result of the previous command is a carriage return. How is this carriage return implemented? The next command needs to have a carriage return in the middle to be implemented.
|
|
2006-12-16 00:52 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
echo.|后面要接回车的命令
The command that needs to be followed by a carriage return after echo.|
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-12-16 01:25 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
用 prompt 也可以
Using prompts is also okay
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-12-16 02:16 |
|
|
a9319751
中级用户
  
积分 439
发帖 170
注册 2006-1-9
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
试试
runas
这个命令必须输入密码
我尝试使用|
但是没有成功
Try the runas command. This command must enter the password. I tried using | but it didn't work.
|

bat c c++ |
|
2006-12-16 05:19 |
|
|
yaotoo1024
新手上路

积分 16
发帖 6
注册 2006-12-15
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
问题已解决
用echo.| 这个就可以了
谢谢大家了
The problem is solved. Just use echo.| This is okay. Thank you everyone.
|
|
2006-12-16 06:36 |
|
|
anqing
高级用户
   
积分 859
发帖 413
注册 2006-8-14
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
使用管道符号就可以轻松解决了。
比如:echo cn-dos|find "cn"
这个只是显示cn-dos,为什么也会产生一个回车哟?
Using the pipe symbol can easily solve it.
For example: echo cn-dos|find "cn" This only displays cn-dos, why does it also produce a carriage return?
|
|
2007-2-1 22:52 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
那个回车符是 Echo 命令发过去的~:)
如果象下面这样是不会有回车符的,它等着你给它一个回车表示输入完成(确认)它才会继续执行:)
set /p=cn-dos|find "cn"
That carriage return is sent by the Echo command ~:)
If it's like the following, there won't be a carriage return. It waits for you to give a carriage return to indicate the input is complete (confirmation) before it continues to execute ~:)
set /p=cn-dos|find "cn"
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2007-2-1 23:12 |
|
|
anqing
高级用户
   
积分 859
发帖 413
注册 2006-8-14
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
cn-dos这是回车的asc码吗?
Is this the ASCII code for the carriage return in cn-dos?
|
|
2007-2-1 23:37 |
|
|
anqing
高级用户
   
积分 859
发帖 413
注册 2006-8-14
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
echo cn-dos回车也有一个空行
?
echo cn-dos returns also have an empty line?
|
|
2007-2-1 23:44 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
Echo cn-dos|find "cn"
通过管道给 find 接收……
find 收到这个 Echo 所发送出的字符串:“cn-dos” 在 find 看来是 “63 6E 2D 64 6F 73 0D” 的表示(实际上计算机看一切都是二进制,16进制是编程和理解以及视觉上为了方便而应用的),最后面的 0D 代表回车符,是 Echo 为了表示一行的结束而发出的:)
关于管道的实例编程以及BASIC的示范来自微软网站:
http://support.microsoft.com/kb/46376/zh-cn
Last edited by redtek on 2007-2-1 at 10:48 AM ]
Echo cn-dos|find "cn"
Pass the pipe to find to receive...
The string "cn-dos" sent by this Echo is received by find: "63 6E 2D 64 6F 73 0D" (in fact, everything the computer sees is binary, and hexadecimal is used for programming, understanding, and visual convenience), and the last 0D represents the carriage return character, which is sent by Echo to indicate the end of a line :)
Examples of pipeline programming and BASIC demonstrations come from the Microsoft website:
http://support.microsoft.com/kb/46376/zh-cn
Last edited by redtek on 2007-2-1 at 10:48 AM ]
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2007-2-1 23:46 |
|