1

I've associated some types of files to open with some specific programs. Now, I want to export all the associated data above and to import those to another computer.

For example: I want to export all associated file types open with Notepad++.exe, and then import that data to another computer.

I consulted this answer: Associate a File Type with a Specific Program

However, all methods are simply to view, cannot export those data (nor can it be imported). With the #3 method (using "File Type Doctor") seems to be able to export data but I cannot know whether it can import data or not because the tool has stopped being supported, can't download it down, install and use.

I also tried with the "FileTypesMan" tool but quite similar to method #2, it cannot export / import data.

So I needed a method that would help me export all associated file types open with a specific program, and be able to import those data to another computer (quite similar to configuration data).

UPDATE: The method needs to be able to work on older versions of windows (minimum Windows 7).

I will appreciate your method.

1 Answer 1

1

This answer only applies to Windows 10 and Windows 11.

So I needed a method that would help me export all associated file types open with a specific program and be able to import those data to another computer (quite similar to configuration data).

Run the following command in an elevated PowerShell prompt to export the file associations:

dism /online /Export-DefaultAppAssociations:"%UserProfile%\Desktop\FileAssociations.xml"

Run the following command in an elevated PowerShell prompt to import the file association:

dism /online /Import-DefaultAppAssociations:"%UserProfile%\Desktop\FileAssociations.xml"

To reverse the import, run the following command in an elevated PowerShell prompt:

Dism.exe /Online /Remove-DefaultAppAssociations

Source:

2
  • Oh, this method only works on Windows 10 and above. And I am looking to move data from Windows 7 (to Windows 10) so it has no get-defaultappassociations option. Jan 21, 2023 at 1:30
  • @TầnQuảng - Export the entire registry key for all file extensions. I took a lot of time to research this answer. I am going to leave it as is.
    – Ramhound
    Jan 21, 2023 at 17:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .