I just tried 'echo' on a few different machines ( I know that at least one did NOT have an xserver installed ) and they all work like I expect. From the command line if you type "echo hi" you will see "hi" on the next line.
It may not be a program but it is still a recognized command on windows, as far as I can tell at least, I may be wrong. | [reply] |
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").
| [reply] [d/l] [select] |
I see what you mean. This is why I put the command into a bat file. Can perl not execute a bat file? I'll try using cmd.exe /c "echo hello world" and see if that works because my test does not create the hello world text file like it should. I appoligize for my newbness I am mostly a Unix / Linux programmer.
| [reply] |