Insert an input to an exe automatically by Command Window
이전 댓글 표시
Good morning,
I have to launch a executable file.
I use:
dos('executable.exe')
After that, the exe reports on the Command Window a string which ask me to type an input.
At the moment I should do it time after time.
I tried:
dos('executable.exe < file.txt')
but it doesn't work.
It could be due to the fact that the input file is indicated after the launch of the exe file and not contextually
댓글 수: 3
Rik
2021년 5월 11일
This is not really a Matlab-question, but a question about how to run your exe. You need to find out how (and if) your program accepts a file input. You could try without the <.
Matteo Volpi
2021년 5월 11일
Rik
2021년 5월 11일
The exe must allow such a thing. Matlab cannot send keystrokes to arbitrary programs.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!