Install Win32::Socketpair and do:
#! perl -slw use strict; use Win32::Socketpair qw[ winopen2 ]; ## Run the command and get a bi-direction pipe to it. my $pipe = winopen2( 'RunMe.exe arg arg arg' ); ## Fetch the results from the pipe my @results = <$pipe>; ## Send enter to it print $pipe "\n"; ## use @results here
In reply to Re: Stop a .exe
by BrowserUk
in thread Stop a .exe
by anshumangoyal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |