perlseeker19 has asked for the wisdom of the Perl Monks concerning the following question:

i know to open a cmd.exe using win32::process, how to interact with the opened cmd prompt?? i need to go to a particular directory and execute some commands. how is this done using win32::process??
  • Comment on spawning a cmd.exe and be able to send commands

Replies are listed 'Best First'.
Re: spawning a cmd.exe and be able to send commands
by syphilis (Archbishop) on Jul 23, 2008 at 13:26 UTC
    Have you thought about Win32::Process (which you already have on ActivePerl) ?

    It doesn't really perform the task as described by you - but it would enable you to run "some commands one by one".

    Cheers,
    Rob