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”.
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
Register all .rb file types to running the ruby interpreter. Failing that,
Just create a shortcut to the main program, and have a batch file that
does:
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.
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”.
The easiest way is via the explorer: right click on some .rb file, “open
with” and select the ruby interpreter - if the association hasn’t been made
already by the installer.
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.
On Win2K and WinXP, ftype /? will give some instruction on adding
filetype associations.