[英]Starting a second command while the first is still running from a batch file
我正在尝试创建一个批处理文件,该文件将运行一个实用程序,该实用程序打开与Internet上设备的连接,然后启动telnet会话。 我的意思是,一旦连接打开,批处理文件就不会继续。
批处理文件
@echo off
set /p serial=What are the last 8 of the STB's serial?
udp.exe -c 127.0.0.1 23 %serial% x.x.x.x 11111 127.0.0.1 23 | telnet 127.0.0.1
输出量
What are the last 8 of the STB's serial? XXXXXXX
Ready for XXXXXXX
它只位于“ ready ...”行,从不打开telnet连接。 我尝试过各种| 和&但没有运气。
启动/ B会有所帮助吗?
开始/? 给
Starts a separate window to run a specified program or command.
START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/WAIT] [/B] [command/program]
[parameters]
"title" Title to display in window title bar.
path Starting directory
B Start application without creating a new window. The
application has ^C handling ignored. Unless the application
enables ^C processing, ^Break is the only way to interrupt
the application
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.