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


  1. Posts : 5
    win 7 enterprise
       #1

    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 Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 05:03.
Find Us