Monday, May 17, 2010

How to examine File Extensions and File Associations in Windows 7

The file extensions for applications are known as file associations. Each of the extensions on a System File has a file association that you can view at a command prompt by typing the assoc command followed by the extensions. For example:
•    assoc .doc

The File type for the file extension is specified by each file association in turn. You can view this at the Command Prompt just by typing the ftype followed by the file association. For example.
•   ftype Word.Document.8


Even though the Assoc and Ftype are internal commands for the command shell (cmd.exe), you can use the command from the Windows PowerShell prompt. If you want to use the Assoc command in the PowerShell, enter cmd /c assoc followed by the extension. For example.
•   cmd /c assoc .doc

Look at the following command.
•    cmd /c ftype Word.Document.8

If you want to use the Ftype command in PowerShell, just enter the cmd / ftype followed by the profile as shown in the above command.

By ,