China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 10:17
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Output redirection problem View 2,419 Replies 1
Original Poster Posted 2016-10-31 08:32 ·  新加坡
新手上路
Credits 1
Posts 1
Joined 2016-10-30 17:44
9-year member
UID 181903
Gender Male
Status Offline
Business needs to retain the Ping result. The command line is as follows:
Ping 192.168.1.1 -n 1000 >test.txt
The test.txt file can be opened to see the correct content.
However, if you use the start command to start ping, the output redirection has no result. The command line is as follows:
Start ping 192.168.1.1 -n 1000 >test.txt
I have checked the DOS online help (start /? and ping /?) and found no solution. I have also searched online and found no clues. I analyzed by myself that it should be that the subsequent output redirection is understood by DOS as a parameter for the start command itself, not for the ping parameter.
I hope it is passed to ping. I hope to get the help of experts.
Floor 2 Posted 2017-02-28 11:28 ·  中国 上海 电信
中级用户
★★
Credits 219
Posts 205
Joined 2017-02-23 15:00
9-year member
UID 182123
Gender Male
Status Offline
I'm Xiao Xia, can only watch from the sidelines, waiting for the great gods to answer.
Forum Jump: