Hi
I have imported a reference library to play with in VBA.
Library is called IMAPI and its used for burning CDs, DVDs etc.... It contain two references IMAPI and IMAPI2FS
the IMAPI2FS is a filesystem reference. where you can manipulate with filesystem choosing which files to burn.
Methods for adding directories into filesystem to burn is called obviously addirectory(), addtree() ... resulting in new particular object type with all the files and directories.
However those methods use string to locate items and not an index (Item(path As String)) therefore i cannot (or i dont know how) loop through that collection of items. So i cannot use for loop .
i tried use for each specifing the type but it only do the root items ignoring subitems.
I can make wrapper using VBS scripting but thats not efficient for me.
Is there a way how to iterate over such collection ?
Thanks in advance
Rom
I have imported a reference library to play with in VBA.
Library is called IMAPI and its used for burning CDs, DVDs etc.... It contain two references IMAPI and IMAPI2FS
the IMAPI2FS is a filesystem reference. where you can manipulate with filesystem choosing which files to burn.
Methods for adding directories into filesystem to burn is called obviously addirectory(), addtree() ... resulting in new particular object type with all the files and directories.
However those methods use string to locate items and not an index (Item(path As String)) therefore i cannot (or i dont know how) loop through that collection of items. So i cannot use for loop .
i tried use for each specifing the type but it only do the root items ignoring subitems.
I can make wrapper using VBS scripting but thats not efficient for me.
Is there a way how to iterate over such collection ?
Thanks in advance
Rom