Some quick Windows command line functions

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.

Free eBook!

Like what you read?

If so, please join over 28,000 people who receive our exclusive weekly newsletter and computer tips, and get FREE COPIES of 5 eBooks we created, as our gift to you for subscribing. Just enter your name and email below:

Post A Comment Using Facebook

What’s Your Preference?

Daily Alerts

Each day we send out a quick email to thousands of PCMECH readers to notify them of new posts. This email is just a short, plain email with titles and links to our latest posts. You can unsubscribe from this service at any time.

You can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Newsletter

Running for over 6 years, the PCMECH weekly newsletter helps you keep tabs on the world of tech. Each issue includes news bits, an article, an exclusive rant as well as a download of the week. This newsletter is subscribed to by over 28,000 readers (many who also subscribe to the other option) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter: