中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-23 13:03
47,812 topics / 349,917 posts / today 0 new / 48,273 members
DOS批处理 & 脚本技术(批处理室) » Output redirection problem
Printable Version  2,599 / 1
Floor1 felixhe Posted 2016-10-31 08:32
新手上路 Posts 1 Credits 1
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.
Floor2 niudd Posted 2017-02-28 11:28
中级用户 Posts 205 Credits 219
I'm Xiao Xia, can only watch from the sidelines, waiting for the great gods to answer.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023