I would like to make a batch file that launches a .exe file that takes a value as input and return an output value.
It will work same as a DOS example
If you type in DOS prompt
dir c:\ >c:\test.txt
- dir is the command (or EXE),
- c:\ is the argument that is passed to the command
- >c:\test.txt is the output redirection,
- therefore the result is written in the specified file instead of to the screen.
From there write a batch file with Notepad containing the lines:
dir c:\ >c:\test.txt echo FINISHED
- Save it in a folder accessible by PATH variable or c:\.
- Your,exe normally displays the string of characters on the screen.
Thanks to amigo for this tip.
- Create batch file to run exe
- Bat file to run exe - Best answers
- Batch file to execute exe - Best answers
- Creating batch file in Windows 10. ✓ - Forum - Windows 10
- Batch file to create a text file with date and time ✓ - Forum - Programming
- [dcc32 fatal error] f2039 could not create output file '.win32debugproject1.exe' - How-To - Windows 7
- Batch file run exe from different directory ✓ - Forum - Programming
- DOS: create filename based on date? - Forum - Programming