VBScript provides no function for extracting ISO images. And as @rojo already said in his comment: why would you burn an ISO image on a CD as a file in the first place? You don't gain anything by doing this. More appropriate procedures are:
- Create a CD from the image (if you need just the files from that image). That way you can simply access the files on drive D: with your script.
- Extract the files from the ISO and burn them to a CD (if you want to add additional files). Access is the same as above.
Extract the files from the ISO and pack them into a Zip archive (if you're pressed for space on the CD). You can then extract the files from the archive on drive D: like this:
Set sa = CreateObject("Shell.Application") Set zip = sa.NameSpace("D:\your.zip") Set dst = sa.NameSpace("C:\destination\folder") For Each f In zip.Items dst.CopyHere(f) Next
Note that
CopyHere
is asynchronous, so it returns immediately, but you may need to wait some time for the extraction to finish.