Win32 service error

S

Simbolla Simbolla

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
 
S

Simbolla Simbolla

Simbolla said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top