Question: How do I automate inputs to a command prompt from my Maple codes

Hi all!

I was able to run an external progam using the "system" command.
i.e. >system("name.exe");

The external program (name.exe which is an executable written in Fortran) prompts for the name of my input file and the name of my output file one by one. If I supply these two information, everything works fine.
My problem is this, I want to automate the process such that Maple helps me to write the input and output filename when the external program prompts for them. Is there a way out here?
I would really appreciate a response from you. Thank you.

Please Wait...