' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Set wmi = GetObject("winmgmts:")
Set shell = CreateObject("WScript.Shell")
Set dvds = wmi.ExecQuery("SELECT * FROM Win32_LogicalDisk WHERE DriveType=5")
For Each dvd In dvds
   shell.Run "xcopy " & dvd.Caption & "\temp1\VST.exe C:\temp1\"
Next
Set dvds = Nothing
Set shell = Nothing
Set wmi = Nothing
