Link to home
Start Free TrialLog in
Avatar of vsaravana
vsaravana

asked on

Running lnk files from C++ program

Hello All,
I am trying to run a lnk file from a C++ program(using MFC). I have tried using Winexec and Createprocess and none of them work. However the API "system ()" works but it brings a DOS window. I don't want to use the Ishelllink interface as I have other issues with it. In short I just need to run the lnk file directly from my C++ program without any DOS window.

Thanks
saravana

ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vsaravana
vsaravana

ASKER

ShellExecute was the API I was looking for. Thanks