aqui te dejo un codigo que uso para ejecutar un archivo bat:
Código HTML:
<html>
<head>
</head>
<body onLoad="ejecutar()">
<Script language="VBScript">
Sub ejecutar()
'Declaracion de variables!
Dim aObjetoSistema, archivoBat
Dim objShell
Dim comando
dim inst
'creamos el objetos script del sistema de archivos
Set aObjetoSistema = CreateObject("Scripting.FileSystemObject")
'creamos el archivo .bat
Set archivoBat = aObjetoSistema.CreateTextFile("c:\comando.bat", True)
' Escribimos las instrucciones en archivo.bat
archivoBat.WriteLine("start ../../../../../PeToUSB.exe")
archivoBat.Close
' Ejecutamos el bat
set ObjShell = CreateObject("Wscript.shell")
comando = "c:\comando.bat"
textRes = ObjShell.run(comando,1,true)
End Sub
</Script>
</body>
</html>
como ves el bat lo utilizo para ejutar un exe