解决了

如何发送数据到命令提示符使用托斯卡和如何获取输出?


Userlevel 5
徽章 + 2
  • 社区经理
  • 72回复

如何发送数据到命令提示符使用托斯卡和如何获取输出?
例:输入cmd: ipconfig
输出:ipv4地址…10.234.567.10
我需要缓冲10.234.567.10 ipv4Address。

(最初要求和解决支持中心)

图标

最佳答案社区管理员2023年7月31日15:56

se the TBox Start Program module to run commands like you would from the Command Prompt.<\/p>

The easiest way to get access to the output is usually to send it to the clipboard, then use the TBox Clipboard module.

\"61570a0b3313ed50b8c0c37c2d5c7bbb.iix\"<\/p>

Note that with many uses of TBox Start Program you don't need to run cmd and can just directly enter the command\/executable in the path, but in this scenario it only seems to work if you use cmd - I guess because it can't treat the \" | clip\" as part of the path or as an argument per se.<\/p>","className":"post__content__best_answer"}">

查看原始

6个回答

Userlevel 3
徽章 + 2

se TBox开始程序模块运行命令就像从命令提示符。

最简单的方法获得的输出通常是寄到剪贴板,然后使用TBox剪贴板模块。

61570 a0b3313ed50b8c0c37c2d5c7bbb.iix

注意,许多使用TBox开始程序不需要运行cmd和可以直接输入命令/可执行文件的路径,但在这种情况下似乎只能如果使用cmd——我猜,因为它不能把“|剪辑”作为路径的一部分,或作为参数本身。

Userlevel 5
徽章 + 2

似乎一切都发生在后台。这是伟大的工作。我需要缓冲完全ipv4Address需要使用但这剪贴板抓住所有可用的文本在cmd。

Userlevel 3
徽章 + 2

的确,托斯卡在后台运行的命令,所以它不需要实际打开命令提示符窗口或相互作用,像一个人类。

类似的和非常普遍使用TBox开始程序运行Powershell命令,可以用来解决一个巨大的各种各样的问题。如果你有兴趣,你会发现很多例子在知识库和这些论坛。

Userlevel 5
徽章 + 2

但是如何缓冲IPV4地址?

Userlevel 3
徽章 + 2

当缓冲文本,如果输出是“ipv4。。192.168.1.1”,你可以把ipv4。。{B [ipaddbuffer]}。这将缓冲区192.168.1.1价值。希望这将帮助!

Userlevel 3
徽章 + 2

轻微的更正:缓冲区的一部分文本不应该使用XB B,即{XB [ipaddbuffer]}。也确保ActionMode =验证。

回复


Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu
map