CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Q: An executable file(.exe) must be started from another application.
Perhaps ShellExecute(0, NULL, "achieve.exe", "LaunchingAppName.exe
HowAreYou? MoreStuff SomeThing", NULL, SW_SHOWNORMAL);
OR
How about using the obsolete Winexec("achieve.exe LaunchingAppName.exe
MoreStuff SomeThing", SW_SHOWNORMAL);
Then use ParamStr(1), ParamStr(2), etc... to get the parameters.
ParamStr(0) contains the application Path/Name, and ParamStr(1), etc,
contain the passed parameters, the first of which could be the launching
app.
This I have not tried, but it sounds reasonable.
The problem would come with spaces in the parameters other than seperators,
which would require some special work with quotes.
W Komornicki's Home Page |
Main Index |
Thread Index