Hi all,
I need ,under Windows, to execute an external program. To be more precise, I need to start a file as Widows do it when I doubli-click on it. The final goal is to start a remote connection.
I did a symbolic link on c : "c:\myconnection.lnk". I first tried standard linux functions (execl, etc.) on the file, but nothing happened when I do :
** execl("c:\myconnection.lnk", "");
I think this is because I didn't start an exe.
Then, I tried to use windows specific functions :
** WinExec("c:\MozillaFirebird.exe", SW_SHOWNORMAL);
But nothing happened. I think the problem is the same : the file is not executable.
Does someone have an Idea how I could do that ?
Thank you very much for any proposition.
Alain Paschoud.
|