C/Fetching Input To an exe file without using keyboard.
Expert: Prince M. Premnath - 9/22/2007
QuestionQUESTION: I have written a Program in c++ which accepts username and a password.How can i give these inputs to the exe file of this program without typing it from keyboard. i don't want to make any changes in the source code.i am looking for a utility which has the inputs and fetches them to the exe file
when asked.
ANSWER: Dear Monis !
Im not pretty clear about what you are actually looking for ,
But im sure its possible to give input to the program ( in this case a user name and password from a text or an encrypted file )
If my guess is related with your question then ask me a follow up regarding the same , else try to explain me ur question in detail .
Thanks and Regards!
Prince M. Premnath
---------- FOLLOW-UP ----------
QUESTION: Actually i am trying to make a batch file in which a file called pass.exe is executed.when Pass.exe is executed it asks for a user name and a password.I don't want to give these inputs myself but i want some utility which contains username and password and automatically fetches these inputs to pass.exe so that execution of the batch file is completed without user intervention.
AnswerDear Monis !
Certainly you can't fine any utility that fetch input to the .exe file what just you developed !
Just it can be accomplished by modifying your source code.at any cost you have to modify you source in such a way if the user failed to give any input ( say user name / pass ) then direct the program to fetch input from a file , of course this is simple !
For any more quires feel free to post me a follow up
Thanks and Regards !
Prince M. Premnath