Question

I need some help, as the title implies, is there anyway that I can launch a VBS file from a HTA application? If not, would there be any application that can be launched by a HTA file that I can then use to launch another file/program?

EDIT

This problem has been resolved.

Was it helpful?

Solution

If you are using javascript as your scripting language in hta, then this could be a solution:

function openApp(sApp)  { 
    var oShell = new ActiveXObject("WScript.Shell"); 
    oShell.Run(sApp); 
}

And then in your markup:

<a href="#" onclick="openApp('notepad.exe'); window.focus();">Click here</a>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top