I need to create a launcher for an autorun CD that creates buttons that opens files(pdfs, videos etc.) from on the CD using VBScript.
I have in the .HTA the following code
shell = new ActiveXObject("WScript.Shell").Run('My eBooks\Triniscene Link Me Campaign.pdf',1,false);
and the button is
<a href="javascript:void(0)" id="link_id">pdf 1</a>
However on clicking the link Internet Explorer opens instead of the file( it doesn't event show the pdf)
I want to be able to trigger the opening of the file with whatever the default application the system has