in reply to Re^7: Win32::Process - need help from an expert!
in thread Win32::Process - need help from an expert!
It'll work from the command line, because the command line can execute more than just programs. DOS has some builtin commands. But we're talking about CreateProcess, which runs programs.
Just like DOS can't execute Perl commands (e.g. print), Perl can't execute DOS commands (e.g. echo). echo is built in cmd.exe and command.com and not a program, so CreateProcess can't run it. However, just like you can run perl to execute Perl commands (perl -le "print 'Hello World'"), you can run cmd to execute DOS commands (cmd /c "echo Hello World").
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Win32::Process - need help from an expert!
by somuchh8 (Novice) on Sep 13, 2007 at 15:57 UTC | |
by ikegami (Patriarch) on Sep 13, 2007 at 16:02 UTC |