How do I change a file with the extension of .txt to .dll or Windows Shell extension?

Leah Whitney
Leah Whitney used Ask the Experts™
on
I changed a file from a .truststore which opens with windows shell to a .txt. I need to change it back.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Will SzymkowskiSenior Solution Architect
Most Valuable Expert 2015
Top Expert 2015

Commented:
I am assuming that you are talking about File Associated program. If so, use the following link below to change it back.
http://www.thewindowsclub.com/change-file-associations-windows


Will.

Author

Commented:
This is on server 2008 r2. I have a file that should be opening with Windows Shell how to I re-associate it?
Will SzymkowskiSenior Solution Architect
Most Valuable Expert 2015
Top Expert 2015

Commented:
Windows 7 and 2008R2 are built on the same kernel so it will be the same steps. also hold shift+right click the file and select Open With > choose default program > select powershell.

Will.
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Author

Commented:
Windows Powershell is not showing up but its clearly installed. Also when I browse for it search can't pick it up.
Will SzymkowskiSenior Solution Architect
Most Valuable Expert 2015
Top Expert 2015

Commented:
You can press the browse button and navigate to the default location which is below...
C:\Windows\System32\WindowsPowerShell\v1.0\
Powershell.exe

Will.
Top Expert 2016

Commented:
windows powershell is located in
C:\Windows\System32\WindowsPowerShell\v1.0\

Author

Commented:
Okay I was able to associate with powershell but I don't believe that is the same as Windows Shell. I have attached a screen shot of another file that I'd like the .truststore to be associated with.
Capture.PNG

Author

Commented:
I don't believe the file was ever really associated. As long as the file can be manipulated, I think that is all that matters. Unless you have any insight on that statement I will consider this solved.
Distinguished Expert 2017

Commented:
Change it to .bat

Not clear what your txt file has to judge whether the .bat is an appropriate extention to use.
This was my solution;

Let .<ext> be the extension you want to deassociate.
With a registry editor (e.g. regedit.exe),
1. go to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\
remove the subtree .<ext>
2. go to
HKEY_CLASSES_ROOT\
remove the subtree .<ext>
remove the subtree <ext>_auto_file

Author

Commented:
Because it worked.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial