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 Answers1

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:

Ramhound
  • 44,080