A
Alexandru Popescu
Hi!
I am trying to write a small script that cleans up the registry after starting Skype (which on
regular basis registers itself in Run).
What I am looking now is the API of Win32::Registry. Where can I find it?
So far I have done this:
require 'win32/registry'
Run_branch = 'Software\Microsoft\Windows\CurrentVersion\Run'
Skype_key = 'Skype'
Win32::Registry::HKEY_CURRENT_USER.open(Run_branch, Win32::Registry::Constants::KEY_ALL_ACCESS) do |
| reg |
reg_typ, reg_val = reg.read(Skype_key)
puts "type: #{reg_typ}"
puts "val : #{reg_val}"
end
type: 1
val : "C:\Program Files\Skype\Phone\Skype.exe" /nosplash /minimized
As you can see I was able to identify the key, but I don't know what can I do next. Win32::Registry
doesn't seem to have a method to delete or modify the content of the key.
On a more general note usually when you want to use such an extension where should I look for
documentation?
thanks a lot,
/alex
I am trying to write a small script that cleans up the registry after starting Skype (which on
regular basis registers itself in Run).
What I am looking now is the API of Win32::Registry. Where can I find it?
So far I have done this:
require 'win32/registry'
Run_branch = 'Software\Microsoft\Windows\CurrentVersion\Run'
Skype_key = 'Skype'
Win32::Registry::HKEY_CURRENT_USER.open(Run_branch, Win32::Registry::Constants::KEY_ALL_ACCESS) do |
| reg |
reg_typ, reg_val = reg.read(Skype_key)
puts "type: #{reg_typ}"
puts "val : #{reg_val}"
end
type: 1
val : "C:\Program Files\Skype\Phone\Skype.exe" /nosplash /minimized
As you can see I was able to identify the key, but I don't know what can I do next. Win32::Registry
doesn't seem to have a method to delete or modify the content of the key.
On a more general note usually when you want to use such an extension where should I look for
documentation?
thanks a lot,
/alex