2005-04-18 02:41:13 +00:00
|
|
|
#!/usr/bin/ruby -I. -I../../lib
|
|
|
|
|
|
|
|
require 'DemoClient'
|
|
|
|
|
|
|
|
HTML_FILE = "demo1.html"
|
|
|
|
|
2005-04-18 22:59:53 +00:00
|
|
|
host = ARGV[0] || '127.0.0.1'
|
|
|
|
port = ARGV[1] || '12345'
|
2005-04-18 02:41:13 +00:00
|
|
|
client = DemoClient.new(host, port).client
|
|
|
|
|
|
|
|
client.fs.file.upload('%TEMP%', HTML_FILE)
|
|
|
|
|
|
|
|
client.sys.process.execute('cmd /C "explorer %TEMP%\demo1.html"')
|