running ruby script as batch file in windows

a little snippet to be put on top of your ruby file so it can run as batch file.

@rem => batch
@ruby %~f0 %*
@goto :eof
batch
# your ruby script here

Blogged with Flock

Tags:

This entry was posted in ruby. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.