Guest Eitan M Posted July 17, 2007 Posted July 17, 2007 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 :)
Guest Newbie Coder Posted July 17, 2007 Posted July 17, 2007 Re: close openned port from command line. 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 -- Newbie Coder (It's just a name) "Eitan M" <no_spam_please@nospam_please.com> wrote in message news:O5gLuQLyHHA.3588@TK2MSFTNGP06.phx.gbl... > 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 :) > >
Guest Eitan M Posted July 18, 2007 Posted July 18, 2007 Re: close openned port from command line. 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 :)
Guest Steve Freides Posted July 18, 2007 Posted July 18, 2007 Re: close openned port from command line. "Eitan M" <no_spam_please@nospam_please.com> wrote in message news:O5gLuQLyHHA.3588@TK2MSFTNGP06.phx.gbl... > 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-
Recommended Posts