Solved

.txt files open with the cmd program

Posted on 2011-03-03
6
404 Views
Last Modified: 2012-05-11
Files that have the .txt file extension open with the OS program CMD when double clicking. If the .txt files are right clicked(RC) on and then Edit is selected they open in Notepad. Also when RCed and selecting Open With, another sub menu with Notepad and Wordpad and "Choose defaul program" are shown. Choosing either Notepad or Wordpad works as expected. Selecting the Choose ... option brings up the "Open with" dialog window. Recommended programs are Notepad and Wordpad. Choosing either one works as expected. The radio selection square is greyed out.
The problem is just when double clicking a .txt file, CMD starts to run
0
Comment
Question by:twallin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 4

Expert Comment

by:denissie
ID: 35031704
Twalin,

If I understood correctly, the following should solve your issue:

First right-click on a TXT file, select Open with and then select Choose Program...
 Step 1
Then, in the popup window, check the checkbox (1), select the wanted program (2) and click OK.
 Step 2
From now on, double click on TXT files should be opened by the above chozen program.

I hope it helps.
0
 

Author Comment

by:twallin
ID: 35031866
I guess I did not explain it very well. I have done as you suggested and as you've shown in the "Open With dialog the red circled and labeled no. 1 is greyed out in my Win7 dialog.
And something I forgot to put in my first submission was that if I change the file extension to .text, as opposed to .txt, the double click works.
0
 
LVL 4

Expert Comment

by:denissie
ID: 35032009
Look into the registrty key (use regedit) "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer"

In the right pane, if there's an attribute "NoFileAssociate", change his value (from 1 to 0 if I'm not mistaken).
Then, try the "Open with" check box again...
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 13

Accepted Solution

by:
upalakshitha earned 250 total points
ID: 35033027
0
 

Author Closing Comment

by:twallin
ID: 35037616
Thanks. This is my first problem solved.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on 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.

717 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