Jump to content

Recommended Posts

Posted

hi,

I wrote the following in ASP on my web server:

<% 
    dim wshell
    set wshell = CreateObject("WScript.Shell") 
    wshell.run "c:\erez-telnet.exe" 
    set wshell = nothing 
%>

the .exe file is an Auto-IT exe file. but the server side does not run it if I surf using IE to this page.

why?

Posted

Are you able to run non-AutoIt applications this way? If you can't run anything at all, your problem lies with the ASP setup and is not an AutoIt problem.

Try running something like notepad and see if it runs. If it doesn't, it's obvious the problem isn't AutoIt.

Posted

hi,

my Auto-IT script only perform telnet stuff:

$ipaddr = "192.168.10.10"
    $port = 23
    TCPStartup()
    $i = 1
    Dim $ConnectedSocket = -1
    $ConnectedSocket = TCPConnect($ipaddr, $port)
    Sleep(600)
    TCPSend($ConnectedSocket, Binary("0xfffb18fffb1f"))
    TCPSend($ConnectedSocket, Binary("0xfffc20fffc23fffb27"))
    Sleep(200)
    TCPSend($ConnectedSocket, Binary("0xfffa1f00500019fff0"))
    Sleep(200)
    TCPSend($ConnectedSocket, Binary("0xfffa2700fff0"))
    TCPSend($ConnectedSocket, Binary("0xfffa1800414e5349fff0"))
    Sleep(200)
    TCPSend($ConnectedSocket, Binary("0xfffd03"))
    Sleep(10)
    TCPSend($ConnectedSocket, Binary("0xfffb01fffe05fffc21"))
    Sleep(200)
    TCPSend($ConnectedSocket, Binary("0xfffc01"))
    Sleep(200)
    TCPSend($ConnectedSocket, Binary("0xfffd01"))
    Sleep(1000)
    TCPSend($ConnectedSocket, "abi")
    Sleep(500)
    TCPSend($ConnectedSocket, Binary("0x0d"))
    Sleep(1000)
    TCPSend($ConnectedSocket, "abithebest")
    Sleep(1000)
    TCPSend($ConnectedSocket, Binary("0x0d"))
    Sleep(1000)
    TCPSend($ConnectedSocket, "vt220")
    Sleep(500)
    TCPSend($ConnectedSocket, Binary("0x0d"))
    Sleep(1500)

the asp code works fine with : ping.exe for example.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...