0% found this document useful (0 votes)
51 views

ASSOC: Fix File Associations

The document provides information about 5 common CMD commands: 1. ASSOC - Allows viewing and setting file type associations 2. FC - Compares two files and lists the differences between them 3. IPCONFIG - Displays network connection information like IP address, subnet mask, gateway 4. NETSTAT - Lists all active TCP connections from the computer to check for malware connections 5. PING - Sends test packets to check if a computer, server, or website is accessible and measure response time

Uploaded by

Rocky
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views

ASSOC: Fix File Associations

The document provides information about 5 common CMD commands: 1. ASSOC - Allows viewing and setting file type associations 2. FC - Compares two files and lists the differences between them 3. IPCONFIG - Displays network connection information like IP address, subnet mask, gateway 4. NETSTAT - Lists all active TCP connections from the computer to check for malware connections 5. PING - Sends test packets to check if a computer, server, or website is accessible and measure response time

Uploaded by

Rocky
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

ASSOC: Fix File Associations

One of the most powerful tools in the CMD command library is the ASSOC
command.

Your computer associates certain file extensions with certain programs. This
is how your computer knows to open Adobe when you double click a PDF
file, or Microsoft Word when you double click a DOC file.

You can view all the file associations your computer knows about by
typing ASSOC in the command window. You’ll see the file extension and the
program it’s associated with.

You can set the association by typing something like assoc


.doc=Word.Document.8.

2. FC: File Compare

Sometimes when files are changed over time, it’s hard to remember what the
differences were between versions. You may not know that a CMD command
offers the ability to compare files and see all differences, but it’s true.

The FC command performs either an ascii or a binary file comparison and


will list all of the differences that it finds.

Fc /a File1.txt File2.txt will compare two ascii files.

Fc /b Picture1.jpg Picture2.jpg will do a binary compare on two images.

3. IPCONFIG: IP Configuration

Network troubleshooting is never simple, but one command that makes it


much easier is IPCONFIG.

Using this command in the CMD command prompt returns detailed


information about your current network adapter connection including:
 Current IP Address
 Subnet Mask
 Default Gateway IP
 Current domain

This information can help you troubleshoot router issues and other
connection issues you could be having with your network adapter.

4. NETSTAT: Network Statistics

Concerned that you could have malware running on your computer that’s
connecting to internet locations without you knowing about it?

If you run a NETSTAT command in the command prompt, you can get a list
of all active TCP connections from your computer.

5. PING: Send Test Packets

An IT Analyst’s best friend is the PING command.  Running this command


sends test packets over the network to the target system.

You can use the PING command to test whether your computer can access
another computer, a server, or even a website. It can help with revealing
network disconnections. It also provides transit time for the packets in
milliseconds, so it also reveals a bad network connection as well.

You might also like