Hi all,
I am very pleased to announce the first release of
win32-service. This is an interface for reporting,
and creating, Win32 services on Windows NT, 2000 and
XP Pro.
Synopsis
···
========
require "win32/service"
include Win32
s = Service.new(
:service_name => “foo”,
:exe_name => “C:\some_dir\foo.exe”,
:display_name => “My Foo Service”
)
s.create_service
Service.start(“foo”)
Service.pause(“foo”)
Service.resume(“foo”)
Service.stop(“foo”)
Service.delete(“foo”)
Service.getdisplayname(“Schedule”) # "Task Scheduler"
Service.getservicename(“ClipBook”) # “ClipSrv”
Enumerate over all services, inspecting each struct
Service.services{ |s|
p s
puts
}
This is the first package I’ve released as part of the
win32utils project, located on RubyForge at
http://rubyforge.org/projects/win32utils/.
Feedback welcome. Enjoy!
Regards,
Dan
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com