From: Gordon Thiesfeld Date: 2007-10-03T00:15:32+09:00 Subject: Re: Whats going on!?!? On 10/2/07, Erik Boling wrote: > Ok so I was programming perfectly fine earlier yesterday, then i got > this idea about instead of going through cmd to open my program, why not > just chose cmd as the program to open it?... bad idea i got this weird > access denied error. Then it would do that to every program i tried to > run, even new ones i made. Then i accidentally set scite as the default > to open the files, so when i ran them in cmd it would just open scite > and show me the code. so i re-installed ruby, and the access denied erro > still pops up when i try and run any ruby program? Any one know what i > need to do to fix this? While it may be possible to set Windows up to do this, I think it would cause other problems; for instance, opening a new cmd prompt each time you type it on the command line. I changed the open action on .rb files to run cmd.exe, and then I changed it back like this: C:\>assoc .rb .rb=rbFile C:\>ftype rbFile rbFile=cmd.exe "%1" %* C:\>ftype rbFile="C:\ruby\ruby186\bin\ruby.exe" "%1" %* rbFile="C:\ruby\ruby186\bin\ruby.exe" "%1" %* The path to your ruby executable is probably different than mine. Let me know if that works. Regards, Gordon