中国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-08-13 05:16
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » dir/b a.txt | del pipe doesn't work, please advise! Thanks.
Printable Version  1,064 / 3
Floor1 oneday Posted 2007-08-24 20:11
初级用户 Posts 8 Credits 24
As the title says, isn't a pipe supposed to pass the result of the first command to the second command? Going by that, giving a.txt to del
shouldn't be wrong, right?
Floor2 oneday Posted 2007-08-25 09:59
初级用户 Posts 8 Credits 24
I found the answer. Looking at the documentation, it seems these two commands run at the same time, so the latter command can't receive the former command's output result. It only works when the second one is waiting for input.
Floor3 Michael Posted 2007-08-25 10:10
钻石会员 Posts 3,041 Credits 10,056
“ dir/b a.txt | del ” has no meaning at all, because the del command does not read data from standard input.
Floor4 halulove Posted 2007-08-27 08:47
初级用户 Posts 19 Credits 43
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023