Menu

.bat file association is a bad idea

2009-03-21
2012-11-13
  • Clint Langdon

    Clint Langdon - 2009-03-21

    I done something really stupid and made notepad association with .bat. Now if I try to execute a .bat file it opens in Notepad++ instead of executing. I'm running vista home prem x64.

    Any ideas on howto fix would be greatly appreciated. already tried

    1. control panel > Default programs > Set Associations nothing to delete the association can change though but not sure what to change to.
    2. removed the association within notepad++

     
    • Michael Houston

      Michael Houston - 2009-06-04

      I agree - the same applies to .vbs files.

      There's an open bug about this here:

      https://sourceforge.net/tracker/index.php?func=detail&aid=1876137&group_id=95717&atid=612382

       
    • Clint Langdon

      Clint Langdon - 2009-03-21

      fixed! there is a registry key here: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\

      called .bat. just deleted that. everything back to normal.

       
    • Anonymous

      Anonymous - 2009-03-22

      congrats to ya
      yes I think your solution is much wiser that others. just delete the relevant key and the system will make it done automatically.

       
  • borenbr

    borenbr - 2009-11-24

    Clint did you ever find a solution to this issue?  I'm in the same boat and other than renaming my .bat files to .cmd I can't find a way to restore the default association.  

    I tried associating with cmd.exe but this only opens a cmd prompt it doesn't run the batch file.

     
  • borenbr

    borenbr - 2009-11-24

    Ok that's odd when I replied I saw your fix.  Today's and odd day on the web for me. 

     
MongoDB Logo MongoDB