Solved

Can I call wordpad in a ruby script ?

Posted on 2010-09-20
3
520 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

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

Accepted Solution

by:
analyticphilosophy earned 500 total points
ID: 33717109
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
ID: 33720331
this will do it !!!!!

thank you so much

Dave
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In Ruby, Call or invoke a API DLL library is easily via Win32API class, win32-api gem or other gems. For general DLL API call, there are quite a few references, some good tips list below: http://www.rubytips.org/2008/05/13/accessing-windows-api-fro…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

631 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