TIMFOX123
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
the report if output to a text file which is then opened automatically by ...... ruby
ASKER
Cool
Almost have it
what do I have to install to get this solved ?
C:/Users/davidbr2/Rubymine Projects/e xample_rea d_file2arr ay/maine.r b:24:in `<class:MAINE>': undefined local variable or method `shell' for MAINE:Class (NameError)
from C:/Users/davidbr2/Rubymine Projects/e xample_rea d_file2arr ay/maine.r b:1:in `<top (required)>'
from -e:1:in `load'
class MAINE
require 'win32ole'
shell.ShellExecute('excel. exe', '', '', 'open', 3)
end
Almost have it
what do I have to install to get this solved ?
C:/Users/davidbr2/Rubymine
from C:/Users/davidbr2/Rubymine
from -e:1:in `load'
class MAINE
require 'win32ole'
shell.ShellExecute('excel.
end
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Andrew
you area a ruby god !!
this really helps me out a lot.
you area a ruby god !!
this really helps me out a lot.
http://rubyonwindows.blogspot.co.uk/2007/05/launching-apps-and-printing-docs-with.html