Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/09/2006, 12:15
sqa212
 
Fecha de Ingreso: mayo-2003
Mensajes: 866
Antigüedad: 21 años
Puntos: 0
Ejecutar exe y pasarle archivo txt

Tengo un archivo exe al que soltandole encima un archivo txt me devuelve un archivo en otro formato. (esto lo hago manualmente)

Estoy intentando abrir el archivo exe y pasarle un fichero de texto desde asp, trabajando desde el propio pc el localhost este es el codigo:

<%
Dim wshell, intReturn
set wshell = server.createobject("wscript.shell")
intReturn = wshell.run("c:\carpeta\miejecutable.exe > c:\carpeta\miarchivo.txt", 0, True)
Response.Write( intReturn )
set wshell = nothing
%>

intReturn me devuelve 0, y no se me crea el archivo resultante,
¿alguien sabe que hago mal?