Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/01/2011, 04:33
pherenike
 
Fecha de Ingreso: diciembre-2007
Ubicación: Ibiza
Mensajes: 37
Antigüedad: 16 años, 4 meses
Puntos: 0
abrir .exe con javascript

Hola a todos!!!

tengo un problemilla que nose resolver, ya que ando un poco verde con el javascript, quisiera abrir un ejecutable con javascript, he probado este script pero me da error en ActiveXObject, si alguien sabe de algun otro script le estaria muy muy agradecida

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript"> 
			function abriracrobat(parametros) 
			{ 
				var oShell = new ActiveXObject("Shell.Application"); 

				var aplicacion = "Acrobat.exe"; 
				
					if (parametros != "") 
					{ 
						var parametros_del_comando = Form1.value; 
					} 
						oShell.ShellExecute(aplicacion, parametros_del_comando, "", "open", "1"); 
			} 
			
			
		</SCRIPT> 
</head>

<body>
	<FORM name="Form1" action=""> 
					<CENTER> 
					<BR><BR> 
						<H1>abrir Acrobat </H1> 
					    <p><BR>
					        <BR> 
					      
					      <input type="Button" name="Button1" 
									value="Acrobat.exe" onClick="abriracrobat()">
				      	    </p>
					    
					</CENTER> 
					</FORM> 
</body>
</html>