Reputation: 179
I want to open my mql.exe file from bat file and fire some commands in it. I have tried the same with below commands but its not working. mql.exe is having command prompt UI.
The code that i wrote in my bat file is as follows :
CD E:\sqMql.exe
START sqMql.exe /K set cont user creator;
but i am not able to perform the same, manually i have to follow below steps to do the same. 1. open sqMql.exe 2. type set cont user creator; and then hit enter 3. type verbose on; and then hit enter
please let me knoe how can i automate this ?
Upvotes: 1
Views: 293
Reputation: 856
Assuming sqMql.exe takes keyboard input you could put the actual keyboard input in somefile.txt and do this:
sqMql.exe < somefile.txt
Updated because of stupid typo: You have to read FROM a file (<) not to write INTO a file (>)
Upvotes: 1