请问怎么样才能使DOS窗口中的内容在Listbox中显示?谢谢!

解决方案 »

  1.   

    使用DOS重定向符,先把结果写到一个文本文件中,再读取显示到 ListView中
    呵呵。
      

  2.   

    调用shell API,将DOS下命令行产生的信息捕捉到程序当中
      

  3.   

    实时显示DOS程序执行的小软件含代码
    http://www.delphibox.com/article.asp?articleid=2002
      

  4.   

    bluesky23(乐天_正在开发右半脑^_^) 
    我试过了没有用,
    你能否给出详细代码?
      

  5.   

    最基本的dir 命令追加到文本!!!
    再用DELPHI读取,感觉没什么不好!
    但是速度慢了!!
    我没想到什么其他法子!
    附基本命令:
    dir c:\*.* >test.txt    //追加到文本可用 dir c:\*.* >>test.txt
      

  6.   

    procedure TForm1.Button1Click(Sender: TObject);vars: string;beginAllocConsole;tryWrite('Type here your words and press ENTER: ');Readln(s);ShowMessage(Format('You typed: "%s"', [s]));finallyFreeConsole;end;end;