Digisoul Posted January 13, 2009 Share Posted January 13, 2009 Hello Guys, I want to know how I can check that ; if any application trying to use any port for connecting to network. I want the path of the application. thanks in Advance. 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
evilertoaster Posted January 13, 2009 Share Posted January 13, 2009 There isn't really a magic function in AutoIt that does your 'idea'. Find out what you actually trying to do first and script that. If you're looking for ideas on where to start you could check out TCPView - http://technet.microsoft.com/en-us/sysinte...s/bb897437.aspx Link to comment Share on other sites More sharing options...
Prab Posted January 13, 2009 Share Posted January 13, 2009 Also, you may be able to use RunWait(@COMSPEC & " /c netstat -b") as a starting point. FolderLog GuiSpeech Assist Link to comment Share on other sites More sharing options...
Digisoul Posted January 14, 2009 Author Share Posted January 14, 2009 There isn't really a magic function in AutoIt that does your 'idea'. Find out what you actually trying to do first and script that. If you're looking for ideas on where to start you could check out TCPView - http://technet.microsoft.com/en-us/sysinte...s/bb897437.aspxI know there is no built in function in auto it& also know about TCPView, now the thing is how can acomplish this task in autoit ?any idia in programming manners? 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
Digisoul Posted January 14, 2009 Author Share Posted January 14, 2009 Also, you may be able to use RunWait(@COMSPEC & " /c netstat -b") as a starting point.netstat is a bit interesting thing, I want a lil help from you. how can i get the result of "netstat -b" in AutoIt? 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
Digisoul Posted January 14, 2009 Author Share Posted January 14, 2009 There isn't really a magic function in AutoIt that does your 'idea'. Find out what you actually trying to do first and script that. If you're looking for ideas on where to start you could check out TCPView - http://technet.microsoft.com/en-us/sysinte...s/bb897437.aspxAs far as i know it use "Winsock" for getting the information about open sockets, now have any topic about that? 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
weaponx Posted January 14, 2009 Share Posted January 14, 2009 netstat is a bit interesting thing, I want a lil help from you. how can i get the result of "netstat -b" in AutoIt?http://www.autoitscript.com/forum/index.ph...&hl=netstat Link to comment Share on other sites More sharing options...
Digisoul Posted January 14, 2009 Author Share Posted January 14, 2009 http://www.autoitscript.com/forum/index.ph...&hl=netstatThanks for this link weaponx, now 1 more question how can i break the connection of 1 application? 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
weaponx Posted January 14, 2009 Share Posted January 14, 2009 You might be better off running Nirsoft CurrPorts to get the information and manage the connections. You can retrieve the information and close the ports from the command line. Link to comment Share on other sites More sharing options...
Digisoul Posted January 14, 2009 Author Share Posted January 14, 2009 You might be better off running Nirsoft CurrPorts to get the information and manage the connections. You can retrieve the information and close the ports from the command line.Is it impossible in Auto It ? 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
evilertoaster Posted January 17, 2009 Share Posted January 17, 2009 It sounds like the missing link here is that you didn't know you can run command line apps from autoit. Use the Run() command. In the case of CurrPorts you might try something like- Run("Cports.exe /close * 80 * *") Link to comment Share on other sites More sharing options...
Digisoul Posted January 17, 2009 Author Share Posted January 17, 2009 It sounds like the missing link here is that you didn't know you can run command line apps from autoit. Use the Run() command. In the case of CurrPorts you might try something like- Run("Cports.exe /close * 80 * *")I know about Command line, i want to know in Autoit? 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
weaponx Posted January 17, 2009 Share Posted January 17, 2009 I know about Command line, i want to know in Autoit?It's possible to call a native Windows library through AutoIt, but you are failing to see the complexity.This is the best example I can find with source code (VB.Net):http://www.codeproject.com/KB/IP/iphlpapi2...x?display=Print Link to comment Share on other sites More sharing options...
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