Somehow my boss convinced his workstation that the handler for .bat files was supposed to be Word. Now, when double-clicking .bat files, they're opened up in Word.
What do I set the 'Opens with...' property to in order for them to execute?
|
Somehow my boss convinced his workstation that the handler for What do I set the 'Opens with...' property to in order for them to execute? |
|||||||||||||||
|
|
I think you'll have to remove the .bat file association from the registry (using the regedit program). According to this forum thread on LockerGnome, you need to remove registry settings underneath this key:
You'll probably want to back up registry before doing this, just to be safe. |
|||||
|
|
This registry key file will do it. Copy and paste to a text file called "restore.reg", and double click it to merge into the registry. It will clear out any per-user setting you may have accidentlly created for .bat files, and restore the system defaults, including the
|
|||||||
|
|
I had the same problem (in Windows 7); batch files were opening in Notepad instead of being executed. Correcting the below registry for .bat files (as per any other machine where it works) will make the batch execute correctly:
Keep these entries but remove all others under |
||||
|
|
|
The information in this answer led me to the solution to my question. I opened the registry key mentioned there and
|
|||
|
|
|
In the regisrty you .bat entry needs to point to the batfile entry:
Naturally you will also need to make sure you have a batfile registry entry:
|
|||
|
|
|
The registry contents vary for different Windows versions. I suggest that you find another computer with the same O/S version, and use regedit to export the contents of Then go to the Boss's machine, delete the above two keys and import the two files. |
|||
|
|