in reply to diskpart.exe and perl
Maybe it's just a matter of style, but I would write that as either:
orfor ( `diskpart rescan` ) { . . . }
And I think there may be a chomp or two missing in there...open FH, "diskpart rescan |" or die "open diskpart|: $!" while (<FH>) { . . . } close FH;
|
|---|