Win32 service error

Hi all,

Below is my code.

require 'rubygems'
require 'win32/service'
include Win32
puts 'Currently Running Services:'
Service.services do |svc|
if svc.current_state == 'running'
puts "#{svc.service_name}\t-\t#{svc.display_name}"
end
end

for this i got "No such file to load --win32/service" How to correct
this program.my OS is XP. Ruby 1.8.6 version.

Thanks
Vinod

···

--
Posted via http://www.ruby-forum.com/.

Simbolla Simbolla wrote:

Hi all,

Below is my code.

require 'rubygems'
require 'win32/service'
include Win32
puts 'Currently Running Services:'
Service.services do |svc|
if svc.current_state == 'running'
puts "#{svc.service_name}\t-\t#{svc.display_name}"
end
end

for this i got "No such file to load --win32/service" How to correct
this program.my OS is XP. Ruby 1.8.6 version.

Thanks
Vinod

Hi all,

my probelm is reloved , Thanks Rajiv , i reffered one of thread which
was related Win32 service related (Access denied error for win32
service).

thanks
Vinod

···

--
Posted via http://www.ruby-forum.com/\.