How to automate a command line utility like DiskPart (vbscript)

Hi all, The other day I created a VBScript to automate DiskPart.exe tool and be able to perform tasks on a disk after selecting it by LUN ID. Note that Diskpart only allow us to select disks by their index number or their location path. Bellow you can see a sample Diskpart.exe script, and how…

3