Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/04/2002, 14:09
vgaray
 
Fecha de Ingreso: octubre-2000
Ubicación: Juarez, Chih.
Mensajes: 161
Antigüedad: 24 años, 7 meses
Puntos: 0
Ejecutar un programa en el server

Este código te servirá para ejecutar algún programa localizado en el servidor.

<%
If ComponenteInstalado("WScript.Shell") Then
Dim wsh
Set wsh = createobject("WScript.Shell")
wsh.run("c:\winnt\notepad.exe")
Else
Response.Write "Actualmente no puedes 'correr' un programa ejecutable en el servidor usando el componente 'WScript.Shell'"
End if
%>
<%
Function ComponenteInstalado(ProgId)
Dim tmpObject
On Error Resume Next
Set tmpObject = Server.CreateObject(ProgId)
If Err.Number = 0 Then
ComponenteInstalado = True
Else
ComponenteInstalado = False
End If
Set tmpObject = Nothing
End Function
%>


---------------------
Tan libre como gratuito!!!