[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

.txt files open with the cmd program

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
twallin
Asked:
twallin
1 Solution
 
denissieCommented:
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
 
twallinAuthor Commented:
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
 
denissieCommented:
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
upalakshithaCommented:
0
 
twallinAuthor Commented:
Thanks. This is my first problem solved.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now