We help IT Professionals succeed at work.

Cannot change default program for *.txt anymore

Ron Dokken
Ron Dokken asked
on
The checkbox "Always use the selected program to open this kind of file" is grayed out.
It does not help to open Windows Explorer "as administrator".

Clicking on *.txt file will now open in "cmd"!
Need to restore this..

The checkbox "Always use the selected program to open this kind of file" is grayed out.
Comment
Watch Question

JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
Commented:
Try changing it in Control Panel, Default Programs. Use the Associate submenu.

Does this work?
Commented:
You have to change below registry key:
HKEY_CLASSES_ROOT\Unknown\shell\opendlg\command


This is how you can do it:

Type regedit in RUN dialog box

Go to HKEY_CLASSES_ROOT\Unknown\shell\opendlg\command

On right side change value of "Default" key exactly as below:
%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,OpenAs_RunDLL %1
Commented:
You can make it greyed-out again by adding " %2" or any other number from 2-9 to the key value
"%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,OpenAs_RunDLL %1"
Tech Support Expert
Commented:
Backup registry key before editing. For me what worked was deleting the file type key in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts for which the option got greyed out, you can use .txt if happening only for this.

Author

Commented:
Nice!
Deleted..
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt ->UserChoice