Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 534
  • Last Modified:

Can I call wordpad in a ruby script ?

I am generating a report, actually several little reports that take up more than a screen.

Is there an easy way to create a text file in ruby and then call it in wordpad ?

I just need to use a mouse to look at the pages of data.

0
TIMFOX123
Asked:
TIMFOX123
  • 2
1 Solution
 
TIMFOX123Author Commented:
this is just running on a xp laptop and it is my workstation.
0
 
analyticphilosophyCommented:
You can use system() to call files on the command line.  So system("C:\Windows\wordpad.exe"), replacing the quoted string with the actual location of the Wordpad executable on your system.

You can also use IO::popen.  IO.popen("C:\Windows\wordpad.exe").  
0
 
TIMFOX123Author Commented:
this will do it !!!!!

thank you so much

Dave
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now