views:

104

answers:

1

In Windows I have console programs that run in the background with console hidden. Is there anyway to direct input to the programs console? I want to be able to do something like:

echo Y| *the_running_process_here*

to send Y to the process' stdin.

A: 

If I understand correctly, you need to send output from some command to the input for another command. You can use the pipe "|" operator for that.

http://commandwindows.com/command1.htm

Here's a link on command prompt options. Hope that helps.

Sho Minamimoto