I am working on a project and I was given a folder containing a application and a batch script that runs the dos application. The application takes two inputs. is there anything i can add to the script to have the script complete the two prompts in the application? I have tried echo and piping it to the application neither worked.
Oh, you want the batch file to send commands to the application while the application is running? Like typing in information and pressing enter? You have to find out if your application has a switch to allow that. In other words, at the command prompt, you need to type something like
applicationname.exe /?
and see if it gives you a little help. In DOS it's not as rich and functional as Unix/Linux unfortunately. You might have to get all greasy and dirty and work with little horrors known as TSR programs to do what you want....
But if you are working in windows, you can find software that simulates mouse and keyboard inputs to any application, but then you're not in a batch file anymore.
Tell us more, are the applications custom? Do you have the source code?
I wonder if Windows Powershell could help?