Link to home
Start Free TrialLog in
Avatar of TIMFOX123
TIMFOX123Flag for United States of America

asked on

in ruby, how can I call notepad ?

I want to click on an icon and ruby produces a report.  

the report if output to a text file which is then opened automatically by ...... ruby
Avatar of Andrew Doades
Andrew Doades
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of TIMFOX123

ASKER

Cool

Almost have it

what do I have to install to get this solved ?

C:/Users/davidbr2/RubymineProjects/example_read_file2array/maine.rb:24:in `<class:MAINE>': undefined local variable or method `shell' for MAINE:Class (NameError)
      from C:/Users/davidbr2/RubymineProjects/example_read_file2array/maine.rb:1:in `<top (required)>'
      from -e:1:in `load'




class MAINE
  require 'win32ole'
 shell.ShellExecute('excel.exe', '', '', 'open', 3)
end
ASKER CERTIFIED SOLUTION
Avatar of Andrew Doades
Andrew Doades
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Andrew

you area a ruby god !!

this really helps me out a lot.