PC Review


Reply
Thread Tools Rate Thread

close openned port from command line.

 
 
Eitan M
Guest
Posts: n/a
 
      17th Jul 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


 
Reply With Quote
 
 
 
 
Newbie Coder
Guest
Posts: n/a
 
      18th Jul 2007
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:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Eitan M
Guest
Posts: n/a
 
      18th Jul 2007
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


 
Reply With Quote
 
Steve Freides
Guest
Posts: n/a
 
      18th Jul 2007
"Eitan M" <no_spam_please@nospam_please.com> wrote in message
news:(E-Mail Removed)...
> 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-


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
command line - add new local printer port Keith G Hicks Windows XP General 10 12th Mar 2010 09:00 PM
after a ftp put command it just says "200 PORT command successful." and hangs forever. What could be wrong? when i test the ftp server using IE in "passive" mode it works fine. but ftp at command line hangs on "200 PORT comma Daniel Microsoft Windows 2000 Security 6 1st May 2006 02:51 PM
after a ftp put command it just says "200 PORT command successful." and hangs forever. What could be wrong? when i test the ftp server using IE in "passive" mode it works fine. but ftp at command line hangs on "200 PORT comma Daniel Microsoft Windows 2000 Networking 1 29th Apr 2006 02:42 AM
after a ftp put command it just says "200 PORT command successful." and hangs forever. What could be wrong? when i test the ftp server using IE in "passive" mode it works fine. but ftp at command line hangs on "200 PORT comma Daniel Microsoft Windows 2000 1 29th Apr 2006 02:05 AM
Com port command line utility Stein Rune Windows XP Hardware 1 17th Mar 2006 03:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:33 PM.