From: Daniel Martin Date: 2006-11-22T14:22:04+09:00 Subject: Re: Is there a class that can control the command window 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. -- s=%q( Daniel Martin -- martin@snowplow.org puts "s=%q(#{s})",s.map{|i|i}[1] ) puts "s=%q(#{s})",s.map{|i|i}[1]