Foros del Web » Programando para Internet » ASP Clásico »

Intentar Ejecutar un bat

Estas en el tema de Intentar Ejecutar un bat en el foro de ASP Clásico en Foros del Web. Buenas, pues este es el código: <% set ObjShell = Server.CreateObject("Wscript.shell") command = "mibat.bat" strResult = ObjShell.run(command,1,true) set ObjShell = nothing strResult = trim(strResult) response.write ...
  #1 (permalink)  
Antiguo 27/01/2004, 07:17
 
Fecha de Ingreso: junio-2003
Ubicación: Asturias
Mensajes: 2.429
Antigüedad: 21 años
Puntos: 7
Intentar Ejecutar un bat

Buenas, pues este es el código:

<%
set ObjShell = Server.CreateObject("Wscript.shell")
command = "mibat.bat"

strResult = ObjShell.run(command,1,true)
set ObjShell = nothing


strResult = trim(strResult)

response.write strResult
%>

Sin embargo mesale el siguiente error:

Tipo de error:
(0x80070002)
/bat/ejecutar.asp, línea 12


Que es la de:
strResult = ObjShell.run(command,1,true)

¿Alguien sabe por que puede ser? ¿Tnedré que configurar mi IIS o algo por el estilo?

El fichero bat y el asp se encuentran en el mismo sitio, que es en el wwwroot.

Las carpetas que tengo dentro de c.\inetpub son
AdminScripts
iissamples
mailroot
Scripts
wwwroot

¿Saben si tendré que crear otra q sea cgi-bin o algo similar? Bueno, espero q puedan ayudarme, gracias de antemano.
__________________
Charlie.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:40.