Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Any way to prevent notepad or Emacs from making file associations?

05 Mar 2012   #1

win 7 enterprise
Any way to prevent notepad or Emacs from making file associations?

I have an ongoing problem with using Emacs on a Win7 machine. When I edit a .bat file and save the file, Emacs updates the registry with an association to 'open' .bat files with the Emacs editor. Batch files then fail to run properly, as they get open with Emacs rather then simply being run by a Command prompt window.

Its quite a bother, since I continually ahve to edit my registry to fix this automatic file association. Anyone know of a way to lock file associations for .bat files, or disable automatic registry updates by programs like Emacs or Notepad?

My System SpecsSystem Spec
05 Mar 2012   #2

Windows 10 Pro X64

Notepad doesn't do this. If it does on your system then there is something else involved.

There must be a setting in Emacs to stop it from doing this as well. Look through the .emacs file, I think this controls optional stuff. If not, find another editor.
My System SpecsSystem Spec

 Any way to prevent notepad or Emacs from making file associations?

Thread Tools

Similar help and support threads
Thread Forum
Making a file (bat?) to automatically create files associations?
Hello, currently if i want to had a file extension to Windows, i have to open the new file type, select the app & tick "always open with" then go to the "Types" app to select correct icon. This take times, especially if doing it on many computers. So is it possible with a .bat/cmd file to create...
General Discussion
File associations help!
My friend was messing around on my laptop and when I got it back everything was changed to iTunes. Although it says google chrome it shows an iTunes logo and will launch iTunes if clicked. This happened about six months ago. I tried for months to get it fixed but I ended up uninstalling iTunes so...
General Discussion
Making the 'edit' option on batch files open in notepad++
Hello, Tonight it seems like I have really got myself into a pickle. As the title says I tried to change the default editor for batch files. I dinked around in the registry a bit, and I now have myself this. Any suggestions to actually making it work? Thanks...
General Discussion
How to prevent Guest account from making modifications to the computer
Hellllllo ! On my work laptop I have my Administrator account, which I use all the time, and a Guest account that people can use to go on the Internet etc. What I have not found out how to do yet is to prevent the Guest account users from : - Installing or removing software - Changing any...
System Security
Trying to copy txt file in Notepad. "Notepad: Access is denied"
:mad::confused::cry: If I had known how much hassle Win 7 was I would have stuck with XP! Well I suppose its a learning curve.... Latest major hassle, I have a text file on my E:\drive, this is a copy of my XP C:\ drive before I installed Win 7 on it. I have now been able to get to it...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:05.
Twitter Facebook Google+