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.

有帮助吗?

解决方案

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>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top