I am a nuby to Ruby but I absolutely love the language.
I was just wondering, is it possible to use Ruby to code
Windows-specific stuffs such as windows processes
and registry manipulation? I know there’s the Win32API
module that allows access to any Win32 functions, but can
it be done using that module also? or do i need something else?
I am a nuby to Ruby but I absolutely love the language.
Hi and welcome,
I was just wondering, is it possible to use Ruby to code
Windows-specific stuffs such as windows processes
and registry manipulation? I know there’s the Win32API
module that allows access to any Win32 functions, but can
it be done using that module also? or do i need something else?
Most things can be done with Win32API, for an example of registry
manipulation there is
/tmp/ruby/ext/Win32API/lib/win32/registry.rb
if you dl and unpack a ruby source code tarball in /tmp. I bet you can
learn a lot by studying it. I’m not sure if its included with Andy’s
installer so you’d better get a source code tarball.
“ddaemon” ddarch@xyborg.de wrote in message
news:3ed25a3a_1@news.tm.net.my…
Hi everybody.
I am a nuby to Ruby but I absolutely love the language.
I was just wondering, is it possible to use Ruby to code
Windows-specific stuffs such as windows processes
and registry manipulation? I know there’s the Win32API
module that allows access to any Win32 functions, but can
it be done using that module also? or do i need something else?
I haven’t tried, but I’d imagine you can do just about anything using the
WMI COM objects on Win2K and WinXP. You would use Win32OLE to access the WMI
objects.