Scripting – ActiveX , JScript: Lanzar ejecutable desde IE en windows
Posted in Scripting, Sistemas, Utilidades, html on Jul 5th, 2010
<script languaje="javascript">
//--ActiveX...--
// Fuente http://www.programacion.com/html/foros/3/msg/25530/
//LaunchArchivoByScriptman
function lanza(prog) {
//v1.0 by scriptman - modificado por dogduck
var Shell = new ActiveXObject("WScript.Shell");
Shell.run(prog);
}
</script>
<!-- llamada a la funcion -->
<input type="button" value="Abre Cajon"
name="Boton" onclick="lanza('C:/WINDOWS/notepad.exe');">
Clika en el altavoz para oir el post



























