Demonstrate with this simple test:
- Create batch file: C:\testdir\batchdir\test.bat containing:
echo "This is test.bat"
- Create ruby file: C:\testdir\test.rb containing:
- And run:
- But using binary Ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] it works just fine:
I found this when trying to use Bundler's 'bundle exec' command, which uses the same technique.