AYUDAAAA TELNET en ASP

26/08/2004 - 03:05 por Virmix | Informe spam
Como puedo hacer una conexión tipo telnet a un servidor usando un puerto
???????

Preguntas similare

Leer las respuestas

#1 Franco Figún
26/08/2004 - 03:24 | Informe spam
Manage a Telnet session in ASP with the Autologin Demo
http://www.dart.com/samples/autologin.asp

<%
Dim strCommand, objWshShell, intReturn
strCommand = "C:\WINNT\SYSTEM32\telnet.exe"
Set objWshShell = Server.CreateObject("WScript.Shell")
On Error Resume Next
intReturn = objWshShell.Run(strCommand, 1, TRUE)
Set objWshShell = Nothing
If intReturn <> 0 OR Err.Number <> 0 Then
Response.Write("<b>Error:</b><br /><b>WScript.Shell Returned:</b><br
/>Number: </b> " & intReturn & "<br /><b>VBScript Returned:</b><br
/><b>Number:</b> " & Err.Number & <br /><b>Description:</b> " &
Err.Description & "<br /><b>Source:</b> " & Err.Source & ")
Else
Response.Write("Command Executed!")
End If
%>

FF
www.francofigun.com.ar
www.microsofties.com.ar
Yahoo MSN:
ICQ: 314408886

"Virmix" escribió en el mensaje
news:nRaXc.109516$
Como puedo hacer una conexión tipo telnet a un servidor usando un puerto
???????


Respuesta Responder a este mensaje
#2 Virmix
27/08/2004 - 19:44 | Informe spam
Muchas gracias por el script, pero no me funciona y puse la ruta del EXE
correctamente, el error está en que no ejecuta nada.

PD: Necesito acceso a Telnet para ejecutar varios comandos desde ASP, esto
me seria facil si pudiera usar ActiveX pero es un servidor publico y no
puedo registrar la DLL en el server.


Algun consejo????????








"Franco Figún" escribió en el mensaje
news:
Manage a Telnet session in ASP with the Autologin Demo
http://www.dart.com/samples/autologin.asp

<%
Dim strCommand, objWshShell, intReturn
strCommand = "C:\WINNT\SYSTEM32\telnet.exe"
Set objWshShell = Server.CreateObject("WScript.Shell")
On Error Resume Next
intReturn = objWshShell.Run(strCommand, 1, TRUE)
Set objWshShell = Nothing
If intReturn <> 0 OR Err.Number <> 0 Then
Response.Write("<b>Error:</b><br /><b>WScript.Shell Returned:</b><br
/>Number: </b> " & intReturn & "<br /><b>VBScript Returned:</b><br
/><b>Number:</b> " & Err.Number & <br /><b>Description:</b> " &
Err.Description & "<br /><b>Source:</b> " & Err.Source & ")
Else
Response.Write("Command Executed!")
End If
%>

FF
www.francofigun.com.ar
www.microsofties.com.ar
Yahoo MSN:
ICQ: 314408886

"Virmix" escribió en el mensaje
news:nRaXc.109516$
> Como puedo hacer una conexión tipo telnet a un servidor usando un puerto
> ???????
>
>


Respuesta Responder a este mensaje
#3 Sashka
27/08/2004 - 20:22 | Informe spam
Tampoco creo que te deje usar WScript.Shell no creo que puedas hacerlo
en un servidor publico ... (tener acceso a telnet)

Sashka

"Virmix" escribió en el mensaje
news:KyKXc.110588$
Muchas gracias por el script, pero no me funciona y puse la ruta del EXE
correctamente, el error está en que no ejecuta nada.

PD: Necesito acceso a Telnet para ejecutar varios comandos desde ASP, esto
me seria facil si pudiera usar ActiveX pero es un servidor publico y no
puedo registrar la DLL en el server.


Algun consejo????????








"Franco Figún" escribió en el mensaje
news:
> Manage a Telnet session in ASP with the Autologin Demo
> http://www.dart.com/samples/autologin.asp
>
> <%
> Dim strCommand, objWshShell, intReturn
> strCommand = "C:\WINNT\SYSTEM32\telnet.exe"
> Set objWshShell = Server.CreateObject("WScript.Shell")
> On Error Resume Next
> intReturn = objWshShell.Run(strCommand, 1, TRUE)
> Set objWshShell = Nothing
> If intReturn <> 0 OR Err.Number <> 0 Then
> Response.Write("<b>Error:</b><br /><b>WScript.Shell Returned:</b><br
> />Number: </b> " & intReturn & "<br /><b>VBScript Returned:</b><br
> /><b>Number:</b> " & Err.Number & <br /><b>Description:</b> " &
> Err.Description & "<br /><b>Source:</b> " & Err.Source & ")
> Else
> Response.Write("Command Executed!")
> End If
> %>
>
> FF
> www.francofigun.com.ar
> www.microsofties.com.ar
> Yahoo MSN:
> ICQ: 314408886
>
> "Virmix" escribió en el mensaje
> news:nRaXc.109516$
> > Como puedo hacer una conexión tipo telnet a un servidor usando un


puerto
> > ???????
> >
> >
>
>


email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida