From: "Stephan Kämper" Date: 2004-04-04T08:49:21+09:00 Subject: Re: Seeking simple way to make foo.rb executable on Windows (e.g. !bin/sh...) Hi, Its Me wrote: > On unix I could put some shell prefix at the front of a file and make a > FOO.rb file directly executable. > > Is there any equivalent in Windows? I want to be able to put my simple > scripts onto my desktop or Start menu and run them. Needless to say I really > don't want to do any kind of executable "packaging". If you're using the Win-Installer you should be able to call any ruby file (with a .rb extension) from the command line, at least if you're running WinXP or Win2K (WinNT may behave similarly but I can't test it) IIRC ftype is the command to set and view this behaviour. Happy rubying Stephan