• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / System Administration / Set Windows File Type Associations With assoc Command

Set Windows File Type Associations With assoc Command

2010-09-27 by Jason

Last week was a bit more stressful than it should have been. A problem arose for some computers which tried opening RealPlayer .ram files unsuccessfully with VLC after it had updated. The computers used to use Real Alternative to open .ram files, which opened them successfully, and I needed to switch them back to doing so. I tried changing the File Type extension through Folder Options only to find it was user-specific. I also tried changing Registry keys for the Local Machine and Local User but neither would seemingly take effect. Finally, I found the assoc command and it saved the day by working per-computer and allowing me to restore the association for .ram files back to Media Player Classic.

You can use the assoc key without any further parameters to get a listing of the current file type associations. The command is present in Windows XP through Windows 7. You can also use further parameters to set file type associations with ASSOC.

I could enter: assoc
and get  a list of all file type associations on the computer.

I could enter: assoc .ram
to find out which program is currently responding to opening .ram files.

I could enter: assoc .ram=mplayerc.ram
and this solved my problem by setting .ram files back to opening with Media Player Classic/ Real Alternative.

I figured out I needed to set it to ‘mplayerc.ram’ by searching around in the Registry after I had set the association for my account through the Tools, Folder Options… configuration.

assoc /? reads:

Displays or modifies file extension associations

ASSOC [.ext[=[fileType]]]

  .ext      Specifies the file extension to associate the file type with
  fileType  Specifies the file type to associate with the file extension

Type ASSOC without parameters to display the current file associations.
If ASSOC is invoked with just a file extension, it displays the current
file association for that file extension.  Specify nothing for the file
type and the command will delete the association for the file extension.

Filed Under: System Administration

Trending

  • Gmail Helps with your Security Concerns, Pt. 2
    In Media, Security and Privacy
  • Dell’s WiGig Wireless dock with the Latitude 6430u Ultrabook
    In Hardware, Gadgets, and Products
  • Valve provides sneak peak at Steam Machines, Controller, and other accessories
    In Hardware, Gadgets, and Products

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • Access to the resource [servershare] has been disallowed Access to the resource [servershare] has been disallowed
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Setup your DFS namespace with DNS for compatibility in a mixed environment Setup your DFS namespace with DNS for compatibility in a mixed environment
  • How Virtual Reality Supports Mental Health Therapy How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting
  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • customer contactless payment for drink with mobile phon at cafe counter bar,seller coffee shop accept payment by mobile.new normal lifestyle concept The Latest Innovations In Payment Technology
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in