From: x1 Date: 2005-09-16T10:18:00+09:00 Subject: Re: Drag and Drop program launch on Windows 1) Download rubyscript2exe-0.4.0.rb from sourceforge.. 2) test ruby script: # -----test.rb----- puts ARGV[0] # -----/test.rb----- 3) run rubyscript2exe-0.4.0.rb test.rb 4) drag a file on the created test.exe --Alternately, just make an rb script that waits on "gets", then simply drag the file into the command prompt and hit enter.. dunno.. just some thoughts.. On 9/15/05, Alan Chen wrote: > Phrogz wrote: > > I want to be able to drag and drop a txt file onto my ruby program, > > such that I get the full file path to the txt file in ARGV[0]. > > > > I found a page that showed me how to: > > a) Create a .bat file with "ruby myprog.rb %1" > > b) Create a shortcut to the .bat file with a hardcoded working > > directory > > You could just put the shortcut in the "Send To" directory. Then it's > just a right-click and send to your script. > > >