erezlevi Posted September 25, 2009 Posted September 25, 2009 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?
Richard Robertson Posted September 25, 2009 Posted September 25, 2009 How do you know it doesn't run? Are you sure it's not just exiting immediately?
erezlevi Posted September 29, 2009 Author Posted September 29, 2009 Because I am not seeing it under Processes (au3wrapper) at all. do you have a working one?
Richard Robertson Posted September 29, 2009 Posted September 29, 2009 I'm not sure what you mean by "working one". I don't work with ASP so I'm just looking at other things it might be. Does your server give permissions to use the objects?
erezlevi Posted September 30, 2009 Author Posted September 30, 2009 bump. does anyone have succesfully called an Auto-IT exe from ASP or .net web server application ? (server side scripting)
Richard Robertson Posted September 30, 2009 Posted September 30, 2009 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.
erezlevi Posted September 30, 2009 Author Posted September 30, 2009 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.
Richard Robertson Posted September 30, 2009 Posted September 30, 2009 Does ASP not let you do that? PHP lets you use sockets, so I would expect ASP to as well.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now