42件ヒット
[1-42件を表示]
(0.020秒)
キーワード
-
optparse
/ shellwords (12) -
shell
/ builtin-command (6) -
shell
/ command-processor (6) -
shell
/ system-command (6) -
win32
/ registry (12)
検索結果
先頭5件
-
shell
/ builtin-command (12017.0) -
Shell で使用するビルトインコマンドを定義しているライブラリです。
...Shell で使用するビルトインコマンドを定義しているライブラリです。... -
shell
/ command-processor (12017.0) -
Shell で使用可能なコマンドの大半を定義するライブラリです。
...Shell で使用可能なコマンドの大半を定義するライブラリです。... -
shell
/ system-command (12001.0) -
-
optparse
/ shellwords (6007.0) -
OptionParser#on で使用可能な引数に Shellwords 追加されます。 オプションの引数は Shellwords.#shellwords によって配列に変換されてから、 OptionParser#on のブロックに渡されます。
...引数に Shellwords
追加されます。
オプションの引数は Shellwords.#shellwords によって配列に変換されてから、
OptionParser#on のブロックに渡されます。
//emlist[][ruby]{
require 'optparse/shellwords'
opts = OptionParser.new
opts.on("-s VAL", Shellwords){|a|......p a #=> ["hoge", "foo", "bar"]
}
opts.parse!
# ruby command -s hoge\ foo\ bar
//}... -
win32
/ registry (25.0) -
win32/registry は Win32 プラットフォームでレジストリをアクセスするための ライブラリです。Win32 API の呼び出しに Win32API を使います。
...を使って WScript.Shell オブジェクト経由でアクセスする方法もあります。
require 'win32ole'
wsh = WIN32OLE.new('WScript.Shell')
value = wsh.RegRead 'HKLM\Software\Microsoft\Windows\...'
wsh.RegWrite 'HKCU\Software\foo\barfile\shell\open\command\\', '"C:\..." "%1"',...