From: nobu.nokada@... Date: 2002-03-17T22:15:24+09:00 Subject: Re: Newbie problem Hi, At Sun, 17 Mar 2002 21:31:17 +0900, Liorean wrote: > >Hmmm, then how do you run the script? In Command Prompt, > >typing `ruby dice.rb'? or adding .rb to PATHEXT environment > >variable and just `dice'? > > I believe this is how it's written in registry: > "%ProgramFiles%/Ruby/1.6.5/bin/ruby.exe" "%1" > Where %1 is replaced with the file in question. (I don't know if it > uses root relative or directory relative references.) Explorer should pass the absolute path. > I just open the file in question, it opens up it's own console window > (unless I open it consoleless, using rubyw.exe, which I don't in this > case). Did you also run the one-liner in [ruby-talk:36009] from Explorer? Doesn't your code work in Command Prompt? -- Nobu Nakada