We have some .exe files that reside on a windows box. We would like to automate them. There is one problem, they need input parameters. my task is to write DOS programs to do it. Now before you tell me that there are other scripts we should do that with i agree and suggested that to the powers that be, unfortunately DOS is what they told me to use.
I define some variables as such:
set FIELD1=Y
set FIELD2=N
set FIELD3=N
echo.| set FIELD4
echo. |set FIELD5
This is how I pass the parameters. Fields 1-3 are pretty straight forward. However fields 4 and 5 need to press the enter key to continue running the .EXE. The echo. | before the set is the latest thing I saw by googling. When I google I come up with many ways to do this none of which worked all the way from it can't be done and to get some software package (technical services at my company says no) to the echo . | Any ideas would be welcome.
Cretin
I define some variables as such:
set FIELD1=Y
set FIELD2=N
set FIELD3=N
echo.| set FIELD4
echo. |set FIELD5
This is how I pass the parameters. Fields 1-3 are pretty straight forward. However fields 4 and 5 need to press the enter key to continue running the .EXE. The echo. | before the set is the latest thing I saw by googling. When I google I come up with many ways to do this none of which worked all the way from it can't be done and to get some software package (technical services at my company says no) to the echo . | Any ideas would be welcome.
Cretin