Solved

.txt files open with the cmd program

Posted on 2011-03-03
6
399 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Nice table. Huge mess. Maybe this was something you created way back before you figured out tabs or a document you received from someone else. Either way, using the spacebar to separate the columns resulted in a mess. Trying to convert text to t…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
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.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

758 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

21 Experts available now in Live!

Get 1:1 Help Now