I want to know if I can open a dos command console and run a command on
it (i.e. dir or cd $some_dir) with the Win32::Process module. I used
the following code but the command didn't get pass into the new dos
console that it opened.
Use Win32::Process
$pid = Win32::Process::Create($ProcessCmd,
"C:\\windows\\system32\\cmd.exe",
"cmd dir",
0,
CREATE_NEW_CONSOLE | NORMAL_PRIORITY_CLASS,
".")|| die ErrorReport();
$ecode = $ProcessCmd->GetExitCode($exitcode);
$ProcessCmd->Suspend();
$ProcessCmd->Resume();
$ProcessCmd->Wait(9000);
#Win32::Process::KillProcess(1, $ecode);
$ProcessCmd->Kill($ecode);
Thanks in advance,
Heidi
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]