What is the reason for this?
- Posted by DB James <larch at adelphia.net> Aug 16, 2005
- 480 views
Hi, In the course of some experimentation in WinXP with sending commands to cmd.exe, I found this situation: If I use RUN cmd to bring up the console for commands in NT-style OS, and type in echo. > "c:\long dir name\long file name.txt" it creates the file named "long file name.txt" in the correct directory and adds three bytes 20 0D 0A. But if I use the system command in an Eu ".ex" file sending this: system("cmd echo. > "&dQuote&fullPath&dQuote,2) then it fails. What is the actual difference between typing a command into the console, and sending the same command via a system() call? Thanks, --Quark