I want to execute a DOS executable, which needs a text file as an argument for processing. During processing, the program asks the user for input. For example,
D:\MyDosExecutable input.txt
Proceed (Y/N)?
In order to execute my DOS file from MATLAB, I issue either of the following commands in MATLAB:
dos('MyDosExecutable input.txt')
!MyDosExecutable input.txt
I do not receive the prompt for 'Proceed (Y/N)?' as expected. Instead MATLAB just display the "Busy" Signal. How do I generate the prompt for user input while my DOS file is being executed?
Best Answer