Author Topic: Examine File Extensions and File Associations in Windows 7  (Read 3009 times)

0 Members and 1 Guest are viewing this topic.

Examine File Extensions and File Associations in Windows 7
« on: June 16, 2010, 06:22:28 PM »

Offline Nick

  • Administrator
  • Platinum Member
  • *
  • Posts: 46028
  • Karma: +1000/-0
  • Gender: Male
  • NickCS
    • http://www.facebook.com/nickcomputerservices
    • http://www.twitter.com/nickcomputer
    • Computer Chiangmai

Examine File Extensions and File Associations in Windows 7

Use these commands to look up file extensions and file associations in the command shell and in Windows PowerShell.

File extensions for applications are referred to as file associations. Each known exten¬sion on a system has a file association that you can view at a command prompt by typing the assoc command followed by the extension. For instance:

assoc .doc


Each file association in turn specifies the file type for the file extension. This can be viewed at a command prompt by typing the ftype followed by the file association. For instance:

ftype Word.Document.8


Assoc and Ftype are internal commands for the command shell (Cmd.exe). But you can also use these commands from the Windows PowerShell prompt. To use the Assoc command in PowerShell, enter cmd /c assoc followed by the extension. For example:

cmd /c assoc .doc


To use the Ftype command in PowerShell, enter cmd /c ftype followed by the file association. For example:

cmd /c ftype Word.Document.8


From the Microsoft Press book Windows 7 Administrator’s Pocket Consultant by William R. Stanek.

credit: technet.microsoft.com


 
Share this topic...
In a forum
(BBCode)
In a site/blog
(HTML)


Related Topics

  Subject / Started by Replies Last post
0 Replies
5189 Views
Last post February 17, 2009, 05:32:34 PM
by Webmaster
0 Replies
3828 Views
Last post February 17, 2009, 05:51:38 PM
by Webmaster
0 Replies
3617 Views
Last post August 24, 2009, 11:14:48 AM
by IT
0 Replies
3410 Views
Last post June 11, 2010, 05:56:08 PM
by Nick
0 Replies
2083 Views
Last post June 16, 2010, 04:59:53 PM
by Nick
0 Replies
2569 Views
Last post June 16, 2010, 06:04:06 PM
by Nick
0 Replies
3225 Views
Last post June 16, 2010, 06:15:55 PM
by Nick
0 Replies
3683 Views
Last post December 02, 2010, 02:09:07 AM
by Nick
0 Replies
4139 Views
Last post December 02, 2010, 02:58:12 AM
by Nick
0 Replies
2342 Views
Last post July 02, 2013, 05:38:32 PM
by Nick