doucment Posted July 11, 2005 Posted July 11, 2005 I thought it can be done with "DllCall" ,but I don't Know how to Use it in AutoIt 3.
w0uter Posted July 11, 2005 Posted July 11, 2005 would you hapen to have an example of how it can be done in another language ? also why not just use netstat.exe ? My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
blindwig Posted July 11, 2005 Posted July 11, 2005 Why don't you get a DLL monitoring tool, then run Netstat and see what DLLs it calls, then look up the functions in that DLL unti lyou find what you need? My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions
w0uter Posted July 11, 2005 Posted July 11, 2005 kinda hard but:http://www.planet-source-code.com/vb/scrip...=54119&lngWId=1 My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
doucment Posted July 12, 2005 Author Posted July 12, 2005 Look it:http://www.vbip.com/iphelper/get_tcp_table.aspI thought it may be done with Autoit in same way.
buzz44 Posted July 12, 2005 Posted July 12, 2005 #include <Constants.au3> $result = Run(@ComSpec & " /c netstat -n", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) $line = StdoutRead($result) If @error = -1 Then Exit MsgBox(0, "netstat", $line)Agreed, why not use netstat? Just use the above, and if you want to put it in a list view simply use the string function's, (StringSplit(), StringStripCR(), StringStripWS() etc) on the above to extract port's, IP address, status etc. qq
doucment Posted July 12, 2005 Author Posted July 12, 2005 Thank u first ! How do i use this script in Windows98? There is no "netstat.exe" in Win98. Use "FileInstall ( "source", "dest" [, flag] )"? What I want is ,that the Port infomation can be got from a DLL . It's more beautiful and professional.
/dev/null Posted July 12, 2005 Posted July 12, 2005 Thank u first ! How do i use this script in Windows98? There is no "netstat.exe" in Win98. Use "FileInstall ( "source", "dest" [, flag] )"?check out http://www.sysinternals.com/Utilities/TcpView.html and the command line tool Tcpvcon. Runs also on Win98!What I want is ,that the Port infomation can be got from a DLL . It's more beautiful and professional.Well, then you have to write such a DLL, as it is not just one DLLCall even with the windows API. On the web site mentioned above, they talk about the source code of Netstatp. I guess you can download that source code and make your own DLL from it, provided you have some reasonable knowledge of windows network programming.CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
buzz44 Posted July 12, 2005 Posted July 12, 2005 So the entire point of this thread is useless? @doucment Wasn't your objective to retrieve IP/Port information like what netstat.exe provides but able to do it with AutoIt? I done the next best thing and provided you will a small script that should work unless, which you pointed out, the machine doesn't netstat.exe on it. And now from your above post it seem's to be that you are going to use the TCPView program that /dev/null gave a link to. Is this true? qq
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