From: Olivia Dou Date: 2006-11-22T14:43:40+09:00 Subject: Re: Is there a class that can control the command window Daniel Martin wrote: > Olivia Dou writes: > >> No, I know exec and system is the method to run OS cmd in cmd window, >> but what I need is a class that can represent the command window. >> >> There is a ruby lib vruby that can represent the windows GUI such as >> form, dialog, but I didn't see one that can represent the command >> window/command prompt. > > It sounds as though you're looking for Win32::Console > > http://rubyforge.org/projects/win32console/ > > It's a little bit out of date, so you'll need to compile a new version > for whatever version of ruby you have. Thanks, Daniel. I did a quick research on Win32::Console, and it seems that the Win32::Console objects represents the console window the ruby script is run in, isn't it? If so, I'm afraid it is still not exactly what I want,:( -- Posted via http://www.ruby-forum.com/.