Using only Console commands, no PowerShell & vbs, what would be the shortest way to find an originating virtual disk file for a mounted drive letter. Or, is it possible to dismount it in such batch without finding its file? I'm thinking of some iterative & enclosed search loops... Like:
Diskpart list vdisk ------------- loop select disk # detail disk if (separate drive letter, check the match with selected drive letter, separate file name if matches) detach vdisk file=
in a loop to find matching drive letter and then link it to vdisk & source file... Is it the shortest way to go?