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

jthib

New member
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

OS
win 7 enterprise
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top