Some quick Windows command line functions

Posted Jul 16, 2007 | by Rich Menga  

Knowing your way around a prompt in Windows does have it’s advantages.

The Command Prompt can be accessed by (for Windows NT/2000/XP/Vista):

  1. Click Start
  2. Click Run
  3. Type cmd
  4. Click OK

The Command Prompt can be accessed by (for Windows 95/98/ME):

  1. Click Start
  2. Click Run
  3. Type command
  4. Click OK

Getting a listing of every single file on your C drive in one text file

C:
CD \
DIR C:\*.* /S > ALLFILES.TXT

This will create a file ALLFILES.TXT in the root of C (as in C:\ALLFILES.TXT) containing a listing of every single file on your C drive.

To note: This may take a long time to complete and the text file may be very large depending on how many files are present in your system.

Additional note: This will work in all versions of Windows

Quickly identifying the MAC address of your network card

From anywhere in a Command Prompt (Windows XP):

  1. Type GETMAC
  2. Press Enter

Your network MAC will be returned. This is useful if configuring MAC filtering in your router or wireless router and need to know this information.

Note: To find the MAC of another computer on your network, simply follow GETMAC with the computer’s workgroup name, such as GETMAC COMPUTERNAME.

Viewing all applications currently accessing the network (internet)

As mentioned in a recent video, the command is NETSTAT.

From anywhere in a Command Prompt (Windows NT/2000/XP):

  1. Type NETSTAT -B
  2. Press Enter

All applications currently accessing the network will be displayed. For any app not accessing the network, it will not be displayed.

Which Of These Traits Applies To YOUR Computing Life?...

Leave a Reply