Hi,
I need to trigger an exe file using the WinExec/ShellExecute by passing input parameters to the function. I found that it is possible with ShellExecute.
I am using below commands to trigger the exe with input parameter using API.
ShellExecuteA(NULL,"open","TEST.EXE","
Parm1",NULL,SW_SHOW);
ShellExecuteA(NULL,"open","TEST.EXE","&(1:)",NULL,SW_SHOW);
It is Always considering the argument as a program and trying to find the dll and failing with
Parm1.dll does not exist. I have tried multiple options by checking in google but no luck.
Could you please help us to know how to pass input parametr to Test.EXE in the above example.
The alternate solution we have is to store the input parameter value in text file and read the text file from Test.EXE.
Thanks.