I need Port check dos command line

Does DOS have a command line check which ports are open just like a port scanner in Mac's?
I want to determine which ports are open and which are being blocked by a firewall.
Can someone help regarding port check dos command?
I'm on Windows XP 32 bit sp2.
Thanks.
