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
Solved

.txt files open with the cmd program

Posted on 2011-03-03
6
401 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
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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 59

Expert Comment

by:LeeTutor
ID: 35032440
0
 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
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…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

860 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