bowei_99 has asked for the wisdom of the Perl Monks concerning the following question:
Update 2: The same thing happens when querying two network shares, one a Win2k server and another a netapp box, but it does get the local groups if I query the box that the script is running on. Odd... I emailed bugs@roth.net, since there doesn't seem to be any sort of discussion board on their site to pose this question.
use strict; use Win32::OLE qw(in with EVENTS); use Win32::OLE::Const; # # Start of script # # Create the SetACL object my $oSetACL = Win32::OLE->CreateObject ('SetACL.SetA +CLCtrl.1') or die "SetACL.ocx is not registered on your system! Use r +egsvr32.exe to register the control.\n"; # Load the constants from the type library my $const = Win32::OLE::Const->Load ($oSetACL) or di +e "Constants could not be loaded from the SetACL type library!\n"; # Enable event processing Win32::OLE->WithEvents ($oSetACL, \&EventHandler); # # Check arguments # my $Path = $ARGV[0] or die "Please specify the ( +file system) path to use as first parameter!\n"; my $Trustee = $ARGV[1] or die "Please specify the tr +ustee (user/group) to use as second parameter!\n"; my $Permission = $ARGV[2] or die "Please specify the per +mission to set as third parameter!\n"; ... # Set the object my $RetCode = $oSetACL->SetObject ($Path, $const->{S +E_FILE_OBJECT});
-- Burvil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why use OCX on Win32?
by GrandFather (Saint) on Apr 04, 2006 at 00:06 UTC | |
|
Re: Why use OCX on Win32?
by displeaser (Hermit) on Apr 04, 2006 at 15:43 UTC | |
by bowei_99 (Friar) on Apr 04, 2006 at 17:28 UTC |