Jump to content
Sign in to follow this  
Digisoul

Application path

Recommended Posts

Digisoul

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

Share this post


Link to post
Share on other sites
Digisoul

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

I 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

Share this post


Link to post
Share on other sites
Digisoul

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

Share this post


Link to post
Share on other sites
Digisoul

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

As 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

Share this post


Link to post
Share on other sites
weaponx

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.

Share this post


Link to post
Share on other sites
Digisoul

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

Share this post


Link to post
Share on other sites
evilertoaster

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 * *")

Share this post


Link to post
Share on other sites
Digisoul

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×