ruby与bat交互!
来源:互联网 发布:mac install gulp 编辑:程序博客网 时间:2024/05/02 23:52
# 为了更好控制批处理文件执行,用ruby与bat交互.
require 'Win32API'
# wrap win32 api
system = Win32API.new("msvcrt","system",['p'],'i')
# execute bat
ret = system.call("w.bat")
if ret != 0
puts "Error occured!"
end
system.call("pause")
- ruby与bat交互!
- bat与Linux自动交互
- 使用ruby与MS Access数据库交互
- python&ruby 与控制台的交互(自动输入密码)
- bat弹窗交互
- Ruby.on.Rails.Web开发之旅-2-与ruby对象交互
- ruby交互ssh
- thrift 交互ruby 和java
- Windows下bat同jar交互
- BAT 批处理文件 与 环境变量
- BAT 批处理文件与环境变量
- flash 与交互:左右交互
- flash 与交互:交互排斥
- python与ruby
- ruby类与对象
- ruby时间与日期
- Ruby属性与方法
- Python与Ruby
- 让基于DirectFB的GTK+ 支持全局剪切板
- C# 2.0 杂项技术,以及C#语言的未来发展(选择自 shoutor 的 Blog )
- 图象处理经典网站(不断更新中)
- Windows 环境下的 PHP5 与 Apache 服务器的配置
- 数据挖掘中数据集资源的收集[]
- ruby与bat交互!
- Linux那些事儿之我是U盘(30)横空出世的scsi
- elgg安装笔记
- 关于 joyo (amazon.cn)
- EJB组件到其他EJB组件的调用操作
- 一声惊呼“还有bug!”
- 自协商引起的故障
- .net中using的几种用途 (平时不容易注意到)
- 遭遇Trojan-PSW.Win32.OnLineGames,Trojan.PSW.Win32.Agent,Virus.Win32.AutoRun.er等/v2