WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

wNT
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

List Open Connections


Question:

Is there a way that i can get the list of open connection from my local pc without having to do it the hard way by using netstat and redirecting the result to a file then reading the file.There must be a more efficient way

Answer:

The Win 32 network extender function wntResources2:
AddExtender( "wwwnt34i.dll" )
ret = wntResources2("", 1, 0, 1, "")
Message("Connected resources",ret )

Article ID:   W17996
Filename:   List Open Connections.txt
File Created: 2008:11:25:13:49:08
Last Updated: 2008:11:25:13:49:08