Chad Perrin wrote:
> How do you have the program written to take the path/filename now?  Have
> you tried feeding it a filename as a command argument?  I'm wildly
> guessing here, because I've never done what you're trying to do, but it
> seems (intuitively, to me at least) like that should work.
> 
> For example, if you write your program such that this works:
> 
>     > progname filename.ext
> 
> . . . then it seems like double-clicking the file, when the filename
> extension in question is associated with your program via MS Windows'
> file type association mechanism, should automatically feed it to the
> program just as it would be fed to the program as a command argument.
> I'd think it would be worth a try.
> 
> If I was using an MS Windows system right this instant, I'd give it a 
> try
> just to make sure before offering the suggestion, but I figure it's 
> worth
> telling you my idea in case you get a chance to test it before I find
> myself sitting in front of my XP test system.

thats not how I have it now, but I think it would work beautifully. What 
I need is the code that would let my program take a command argument, 
any clues as to where i could find that?
-- 
Posted via http://www.ruby-forum.com/.