(转)分享一个技巧,利用批处理调用ruby脚本(可能你为路径苦恼)

#关闭命令显示
@echo off
#提示信息
echo Now,listing the controller,please not shutdown the DOS File!
#切换到当前路径,.bat文件和.rb文件放在一起就可以了
set pa=%cd%
#执行ruby脚本
ruby test.rb
pause
原文地址:https://www.cnblogs.com/smiler/p/3166747.html