ok here's the plan,I am trying to search for user files on the C:\drive. So I have declared a variable array
$search_key="c:\*.pst;c:\*.doc;c:\*.vsd;c:\*.xls;c:\*.mpp;c:\*.mdb"
I then use the DOS dir command to search for these files and return them to a txt file.
I then use kix to get file size for each file, work out the extension type and add the size to a variable that would be based on the extension type
at the end of the script I would need to echo each of the variables back to say that
the script had found
PST files totaling XXXX bytes,
DOC files totaling XXXX bytes,
etc, etc.
I created the script using select case endselect, which you also came up with, however I would like to make it easy for noddy admins to add an additional file type to search for by just adding it into the string $search_key (see above) without editing the script further down...
does this make sense?
I am just thinking that a 2D array maybe more appropriate but that kinda stuff is way over my head
