(转)分享一个技巧,利用批处理调用ruby脚本(可能你为路径苦恼)时间:2023-03-09 00:29:57 #关闭命令显示 @echo off #提示信息 echo Now,listing the controller,please not shutdown the DOS File! #切换到当前路径,.bat文件和.rb文件放在一起就可以了 set pa=%cd% #执行ruby脚本 ruby test.rb pause