close openned port from command line.

  • Thread starter Thread starter Eitan M
  • Start date Start date
E

Eitan M

Hello.

On some of my program I do some checking,
and due that the port is openned.
I want to close a port from a command line (*.bat or *.cmd file)
that I shouldn't reboot my computer every time the port is oppened.

How can I do that ?

Thanks :)
 
Eitan,

If you are using the XP SP2 Firewall then close the port (START | CONTROL PANEL
| WINDOWS FIREWALL).
You can do the same with your firewall software if not the XP basic firewall.
Just read their online help if necessary
 
I didn't understand.

Port cannot be used twice.
How can I do (by force) : make the port be unused (i.e. the source program
that openned it,
may work miscorrectly, so I should make the port be unused on some other
way),,
and after that I want to use it again by another program ?

Thanks :)
 
Eitan M said:
Hello.

On some of my program I do some checking,
and due that the port is openned.
I want to close a port from a command line (*.bat or *.cmd file)
that I shouldn't reboot my computer every time the port is oppened.

How can I do that ?

Thanks :)

You are best to ask on a developer forum. Generally speaking, opening
_anything_ returns a handle/value/number that you can use to refer to
whatever you opened and to close it when needed.

-S-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top