我正在尝试创建一个批处理文件,该文件将运行一个实用程序,该实用程序打开与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连接。我尝试了各种各样的和&但没有运气。
答案 0 :(得分:1)
会开始/ 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
...