How enter a password using C++ code

I have a password protected executable file in .zip format. Now I have given the following command to open this file
system("start e:\\\\Terminal.exe");
After execution of this command a small window appears asking for password to enter. I want this password to be entered automatically using c++ code. How i can do it.
You need to look at the parameters for the executable you're running to see if you can pass the password on the command line.

Otherwise you have to hook into the window and inject the commands. (hard)
Topic archived. No new replies allowed.