Today's problem is this:
I need to extract an ISO image file for windows updates using VBScript. Reason for using VBScript is because everything in on stand-alone systems, and I'm trying to automate the process by making scripts.
That ISO file will be on a CD/DVD, via D:
If it is possible and anyone can help me, that would be awesome!
Although, if it is not possible, could it be done using standard windows command line, using a batch file?
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:
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.