Actually i want to open a pdf file in Acrobat pdf viewer if it is installed or else in web browser(IE). How do i do this?

I have tried using ShellExecuteEx(), which would return SE_ERROR_ASSOC if no associations are found. So, I thought Acrobat pdf will be the assoc type of .pdf files. And hence removed the assoc by set assoc .pdf= command in cmd. After this step also, it somehow opens ie browser by default & I am not getting SE_ERROR_ASSOC error.

0 Answers