From: Eric Christopherson Date: 2010-02-28T01:25:36+09:00 Subject: Re: running a file On Fri, Feb 26, 2010 at 7:30 PM, John Pasqa wrote: > ok, i'm writing a ruby program that interprets some text and does stuff > with it, but thats not what i'm here to ask about. > What I want to know is how would I make it so the user can right-click > and open a file with my program. Just like how if you right click a .rb > file you can run it with the ruby MRI. All I need is to get the text in > the file into a variable in the program when the user opens it. Any > suggestions? Assuming you're using Windows, you will most likely have to edit the registry entry for the file type you want to open with your script.