Did you try the pipe operator | ? The command you wrote as an example uses output redirection, close but not exactly the same.
To use the output of prog 2 as standard input (console input) to prog1, you would say prog1 < prog2 To sent the output of prog1 to a file or other device prog1 > prog1output.txt To use the output of one program as the input to another dir | more (that takes a directory listing and runs it through the more utility which only shows you one screen of data at a time) For more details on CMD usage go to Start -> Help. Shawn Green Database Administrator Unimin Corporation - Spruce Pine Scott Hamm <[EMAIL PROTECTED]> wrote on 10/04/2005 12:45:05 PM: > How do I pipe the Windows cmd output into mysql inserts? > > i.e. > > dir /w /o:n > mysql -u process (INSERT INTO TABLE) > > > > -- > Please avoid sending me Word or PowerPoint attachments. > See http://www.gnu.org/philosophy/no-word-attachments.html