BasilOfWestdene has asked for the wisdom of the Perl Monks concerning the following question:
Setting the first 2 parameters is no problem but how to I get at the returned values? In VBScript the parameters are positional and I just Dim the variables and present the names.$AllocSpace = 0; $NumbFiles = 0; my $SOS = Win32::OLE->GetActiveObject("SpaceObServer.Application") || Win32::OLE->new("SpaceObServer.Application", 'Quit'); # get already + active SOS # application or open new for($i=0; $i < $SOS->{FileAgesCount}; $i++) { $SOS->{ROOTDirectory} = $RootDirectory; $CurrentID = $SOS->{RootFolderID}; $SOS->GetFileAgesValue({ olderID => $CurrentID, Index => $i, OccupiedSize => $AllocSpace, NumFiles => $NumbFiles }); print "$AllocSpace\n\n"; # Just to see if I get any data returned }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Win32::OLE
by Corion (Patriarch) on Jun 26, 2012 at 13:23 UTC | |
by BasilOfWestdene (Initiate) on Jun 27, 2012 at 15:28 UTC | |
|
Re: Using Win32::OLE
by bulk88 (Priest) on Jun 26, 2012 at 15:30 UTC | |
by BasilOfWestdene (Initiate) on Aug 24, 2012 at 11:16 UTC | |
by bulk88 (Priest) on Aug 24, 2012 at 18:31 UTC |