The problem is (almost certainly) that diskpart does direct console IO, rather than file IO to STDOUT. I haven't yet found a workaround for this.
In theory, it should be possible to write an IPC::Open2-alike that uses Win32::Console (or better, the APIs that underlie that module), that would work regardless of the type of IO the child process uses.
The reality is that it is rather harder to do than it should be.
In reply to Re: open2 with windows diskpart
by BrowserUk
in thread open2 with windows diskpart
by wxfield
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |