문제

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