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

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

 

posted @ 2013-07-02 13:15  幕三少  阅读(462)  评论(0编辑  收藏  举报