Supplying new command line parameters to the executable already active
-
Hello, Is there a way to can send parameters through command line to the executable that is already active. Let me explain my requirement clearly. I have an exe which accepts command line parameters and one of the command line parameter is a file name. Now i need to input another file while the exe is still running. Please let me know if there a way to acheive this? Thanks, Hari krishna.
-
Hello, Is there a way to can send parameters through command line to the executable that is already active. Let me explain my requirement clearly. I have an exe which accepts command line parameters and one of the command line parameter is a file name. Now i need to input another file while the exe is still running. Please let me know if there a way to acheive this? Thanks, Hari krishna.
You probably need some sort of
IPC
[^]. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hello, Is there a way to can send parameters through command line to the executable that is already active. Let me explain my requirement clearly. I have an exe which accepts command line parameters and one of the command line parameter is a file name. Now i need to input another file while the exe is still running. Please let me know if there a way to acheive this? Thanks, Hari krishna.
Not possible since the application is only started once, and thus
main()
is only called once."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hello, Is there a way to can send parameters through command line to the executable that is already active. Let me explain my requirement clearly. I have an exe which accepts command line parameters and one of the command line parameter is a file name. Now i need to input another file while the exe is still running. Please let me know if there a way to acheive this? Thanks, Hari krishna.
-
Hello, Is there a way to can send parameters through command line to the executable that is already active. Let me explain my requirement clearly. I have an exe which accepts command line parameters and one of the command line parameter is a file name. Now i need to input another file while the exe is still running. Please let me know if there a way to acheive this? Thanks, Hari krishna.
may be a solution: you run the app #1 in MSG processing define an own message, f.e. WM_OWNMSG run app #2 handle the command line parameters find/catch the main window of app #1 (f.e. throu FindWindow(...); ) send the cmdline parameters throu SendMessage(FindWindow(...), WM_OWNMSG, (LPARAM)cmdline, (WPARAM)whatWithIt);
modified on Thursday, July 24, 2008 7:07 PM
-
Hello, Is there a way to can send parameters through command line to the executable that is already active. Let me explain my requirement clearly. I have an exe which accepts command line parameters and one of the command line parameter is a file name. Now i need to input another file while the exe is still running. Please let me know if there a way to acheive this? Thanks, Hari krishna.