K
Kai Geng
Hi
I have installed the gem of win32-service-0.6.0-x86-mswin32-60.gem.But
when I run my test code such as:
require 'rubygems'
require 'win32/service'
include Win32
s = Service.new
s.create_service{ |srv|
srv.service_name = "foo"
srv.binary_path_name = "D:\\Ruby\\bin\\ruby "+File.expand_path($0)
srv.display_name = "Test_service"
}
s.close
Service.start("foo")
I will get a 1053 ERROR. How can I rescue the error?
Attachments:
http://www.ruby-forum.com/attachment/1128/moz-screenshot.jpg
I have installed the gem of win32-service-0.6.0-x86-mswin32-60.gem.But
when I run my test code such as:
require 'rubygems'
require 'win32/service'
include Win32
s = Service.new
s.create_service{ |srv|
srv.service_name = "foo"
srv.binary_path_name = "D:\\Ruby\\bin\\ruby "+File.expand_path($0)
srv.display_name = "Test_service"
}
s.close
Service.start("foo")
I will get a 1053 ERROR. How can I rescue the error?
Attachments:
http://www.ruby-forum.com/attachment/1128/moz-screenshot.jpg