From: Hee-Sob Park Date: 2000-12-02T10:40:02+09:00 Subject: [ruby-talk:6731] Re: newbie: windows ruby file types Hi, "Ronald Jeffries" wrote in message news:670C0E3DD5BA7D73.4F80678D1E2D683E.52C98A3F22F4E782@lp.airnews.net... > OK, Dave Thomas (the book one, not the hamburger one) talked me into > However, when I click a .rb file, it opens a DOS window, runs the > program, and closes the DOS window. I thought I'd look to see whether > I could change that to leave the window open, on the off chance that > I'd like to know what the program I just ran did. > > In Explorer View/Folder Options... I go to the File Types tab and get > that delightful list of all the file types. I can't find the .rb type > in there. I looked for the word Ruby - not there. I looked for the > little ruby icon, which does show up on the files OK - not there. I > clicked one at a time through the whole list and can't find .rb. > I can find RB entry in WinME. > > Any advice other than "go away" will be cheerfully accepted. Thanks! > Run Registry Editer(regedit.exe) Goto [HKEY_CLASSES_ROOT\rb\shell\open\command] entry Its value must be like this "C:\ruby\bin\ruby.exe" %1 Modify it to command.com /k "C:\ruby\bin\ruby.exe" %1 (in Win95/98/Me) or cmd.exe /k "C:\ruby\bin\ruby.exe" %1 (in WinNT/2000) > Ronald E Jeffries > http://www.XProgramming.com > http://www.objectmentor.com Hee-Sob Park