Solved

Cannot change default program for *.txt anymore

Posted on 2016-10-10
5
66 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 90

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 3

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A list of useful business intelligence software.
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
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.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now