From: Kyle Schmitt Date: 2008-11-25T06:26:15+09:00 Subject: Re: Can you run a command line script with arguments, without typing 'ruby' first? On Mon, Nov 24, 2008 at 3:12 PM, Jayson Williams wrote: > I am using win os, so the shabang thing isn't an option for me. I put > the script in my ruby bin path, and I can access the script from > anywhere now, but I still have the same problem with the script not > running properly unless i type ruby first. It is as if ruby does not > attempt to read in arguments unless you explicitly pass the script > through ruby. If I call the script with the arguments without putting > 'ruby' first, the args don't seem to get read. Jayson, if your not on a real OS, you need to associate the extension .rb with the interpreter. It's been a little while since I've done this in windows, but it's actually pretty straightforward. You may have to google for how to associate the script with the interpreter though, as I don't recall the _exact_ steps. --Kyle