
CODE: [Copy to clipboard][ Last edited by vkill on 2007-12-8 at 09:29 AM ]#!/usr/bin/ruby
@rem = <<CMDSHELL
@echo off
cls
for %%? in (ruby.exe) do if not *%%~$PATH:?==* ruby.exe "%~f0" %*
exit/b
CMDSHELL
#ruby code
print "ruby run in shell bash/cmd , 参数:" ; $*.each {|i| print '"'+i+'" '}
__END__
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |