How to open a pdf with WScript.Shell
问题 I'm creating a HTA application that needs to open PDF document. I cannot assum that the user will have acrobat installed on his PC as in this example The WScript (documentation) allow you to run a command line application. But what I would like, is for the WScript to simulate a double click on the file. I would like to be able to do something like var wshShell = new ActiveXObject("WScript.Shell"); wshShell.Exec(pdfFilePath); // That does not work 回答1: In cmd , you can open a file like this: