创建运行Ruby脚本的批处理文件

时间:2016-06-09 11:50:42

标签: ruby batch-file

我想创建一个可以运行像console.log(elementTranslated.offsetHeight); 这样的Ruby文件的批处理文件。

任何人都知道如何创建一个?

我正在使用Ruby 2.0.0和Windows 10。

1 个答案:

答案 0 :(得分:0)

你只需要这样做。

cd location
test.rb

这也可能有用。

cd ruby_install_location
ruby.exe c:/fullpath/test.rb