Solved

Can I call wordpad in a ruby script ?

Posted on 2010-09-20
3
500 Views
Last Modified: 2012-05-10
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
Comment
Question by:TIMFOX123
  • 2
3 Comments
 

Author Comment

by:TIMFOX123
Comment Utility
this is just running on a xp laptop and it is my workstation.
0
 
LVL 2

Accepted Solution

by:
analyticphilosophy earned 500 total points
Comment Utility
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
 

Author Closing Comment

by:TIMFOX123
Comment Utility
this will do it !!!!!

thank you so much

Dave
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now