![]() |
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-12 09:53 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » [Help] Application of redirection |
| Printable Version 1,371 / 2 |
| Floor1 Argee | Posted 2003-03-12 00:00 |
| 初级用户 Posts 4 Credits 118 | |
|
I'm currently running into a difficult problem.
I want to use another person's program output (a massive text stream), and write my own program to analyze this text stream. I used vbdos provided on this site, but when using the input statement it leaves traces of the input on the screen. For massive amounts of data, this seriously affects the program's execution speed. I hope some expert can point me in the right direction!!!!!!!! I'll be grateful to tears! If you're in Shanghai, I'll treat you to a meal! I definitely won't go back on my word. |
|
| Floor2 ko20010214 | Posted 2003-03-12 00:00 |
| 版主 Posts 1,628 Credits 7,296 | |
|
You can use the DOS redirection command.
Usage: filename1>filename2 Explanation: filename1 is the other person's program filename2 is the filename where the data output by the other person's program is saved. This way, the data output by the other person's program (which would originally be output to the screen) can be redirected to a file. The contents of this file are everything that would originally have been displayed on the screen. Not sure whether explaining it this way is of any help to you. But if that other person's program you mentioned does not output data fully automatically, then I guess this trick won't work. |
|
| Floor3 Argee | Posted 2003-03-13 00:00 |
| 初级用户 Posts 4 Credits 118 | |
|
Thanks!!! This trick works quite well, kind of like a Windows buffer file. Before I have any other way, I'll go with your suggestion!!
I don't want to leave traces on the disk, so I want to use a pipe directly: if this file gets saved, it may be over a hundred megabytes! Ah, what a headache. By then, even if I read it back out for analysis, it'll still take some time. Think about it, if I redirect the output to a file now, then when the other person's program runs, with the time needed to save to disk added in, under a small data volume, DOS takes about 45s to run. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |