Yeah well, it's a work in progress. The class actually instantiates a Win32_Drive object. The global hash and array I will fix later to make them private. $$self->FreeSpace is used. It is a method of the Win32_Drive class that is blessed into the class
So what I'm trying to do is bless the Win32_Drive class returned by a WMI query so I can add other methods to it.
The CIM_Datafile collection ($file returned by WMI) is supposed to be of various .bak and .trn files found in that drive.
Because the .trn files are on different drives to the .bak files I want multiple Backup_Drives that are holding their own collection of files. Then I can work out the calculations where they have to cross reference each other for information later.
It's complicated.
In reply to Re^2: Is it a reference issue or what?
by OzVegan
in thread Is it a reference issue or what?
by OzVegan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |