How to feed input to an exe via bat file on DOS : Suppose I have a program kn.exe made in Visual Basic which takes in three numbers in text boxes and calculates an index out of them when one clicks the command "Calculate", and displays the calculated number (index) in another text box. 

Can I write a .bat file for DOS which will have one or several sets of those three numbers and will execute kn.exe, calculate the index and display it (still better if it can write it somewhere)?

It can either execute kn.exe once and feed the several sets of three numbers, or it can start kn.exe for each set of three numbers. Thanks for any help.