Solved

Cannot change default program for *.txt anymore

Posted on 2016-10-10
5
80 Views
Last Modified: 2016-10-10
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.
0
Comment
Question by:dr_fred
5 Comments
 
LVL 93

Assisted Solution

by:John Hurst
John Hurst earned 125 total points
ID: 41836774
Try changing it in Control Panel, Default Programs. Use the Associate submenu.

Does this work?
1
 
LVL 19

Assisted Solution

by:Thommy
Thommy earned 125 total points
ID: 41836839
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
1
 
LVL 19

Assisted Solution

by:Thommy
Thommy earned 125 total points
ID: 41836850
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"
1
 
LVL 4

Accepted Solution

by:
Uttam Kumar earned 250 total points
ID: 41837026
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.
1
 

Author Closing Comment

by:dr_fred
ID: 41837849
Nice!
Deleted..
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt ->UserChoice
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question