14 lines
299 B
Ruby
Executable File
14 lines
299 B
Ruby
Executable File
#!/usr/bin/env ruby -I. -I../../lib
|
|
|
|
require 'DemoClient'
|
|
|
|
HTML_FILE = "demo1.html"
|
|
|
|
host = ARGV[0] || '127.0.0.1'
|
|
port = ARGV[1] || '12345'
|
|
client = DemoClient.new(host, port).client
|
|
|
|
client.fs.file.upload('%TEMP%', HTML_FILE)
|
|
|
|
client.sys.process.execute('cmd /C "explorer %TEMP%\demo1.html"')
|