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: HELP!! I changed my BAT file association and can't get it back


04 Jun 2010   #1

windows 7
 
 
HELP!! I changed my BAT file association and can't get it back

Ok, I did something silly.

This is windows 7

I went to

Control panel->Default programs->Associate a file type with a program

and changed the association to file .BAT to explore.exe (do not ask me, long story).

Now, when I click on a bat file with the mouse, the whole desktop starts shaking. I think it goes into a loop.

The problem, when I go back to

Control panel->Default programs->Associate a file type with a program

The extension .BAT is no longer there! It is gone.

And when I examine the file property of some .bat file, there is no option to change what to open it with. There is no open with... only OPEN option.

There is also no way to add a new file extension in Control panel->Default programs->Associate a file type. I can't add .bat again.

I did

Control panel->Default programs->Set progream access and computer defaults

but still the .bat file association is broken, and when I double click on it, same thing happens.

Strange thing, is that initially, the program associated with .BAT was unknown.

What do I do to get things to the way it was?

Now when I right click on a .BAT file from exploer, I also do not see the EDIT option any more.

<SILLY_ME_NEEDS_URGENT_HELP>


My System SpecsSystem Spec
.

04 Jun 2010   #2

Windows 7 Profesional x86, Mac OS X 10.6 Snow Leopard
 
 

Quote   Quote: Originally Posted by newWin7User View Post
Ok, I did something silly.

This is windows 7

I went to

Control panel->Default programs->Associate a file type with a program

and changed the association to file .BAT to explore.exe (do not ask me, long story).

Now, when I click on a bat file with the mouse, the whole desktop starts shaking. I think it goes into a loop.

The problem, when I go back to

Control panel->Default programs->Associate a file type with a program

The extension .BAT is no longer there! It is gone.

And when I examine the file property of some .bat file, there is no option to change what to open it with. There is no open with... only OPEN option.

There is also no way to add a new file extension in Control panel->Default programs->Associate a file type. I can't add .bat again.

I did

Control panel->Default programs->Set progream access and computer defaults

but still the .bat file association is broken, and when I double click on it, same thing happens.

Strange thing, is that initially, the program associated with .BAT was unknown.

What do I do to get things to the way it was?

Now when I right click on a .BAT file from exploer, I also do not see the EDIT option any more.

<SILLY_ME_NEEDS_URGENT_HELP>
I think this can be solved with a simple system restore: System Restore
This should work; post back with any results.

Oli
My System SpecsSystem Spec
04 Jun 2010   #3

windows 7
 
 

Found a solution !!

I forgot about regedit, so I went to regedit, searched for .bat,
Found it, and found some entries associated, which was telling windows what to do with this file.

So, I deleted all of these entries,

Now it is working as before.

<ALL_OK>
My System SpecsSystem Spec
.


04 Jun 2010   #4

Windows 7 Profesional x86, Mac OS X 10.6 Snow Leopard
 
 

Good to know, thanks for sharing the solution.

Oli
My System SpecsSystem Spec
04 Jun 2010   #5
Microsoft MVP

 

Hope you set a restore point before editing the registry. Watch for unintended consequences.

The correct solution was to SysRestore as Osholt suggested.
My System SpecsSystem Spec
04 Jun 2010   #6

windows 7
 
 

Quote   Quote: Originally Posted by gregrocker View Post
Hope you set a restore point before editing the registry. Watch for unintended consequences.

The correct solution was to SysRestore as Osholt suggested.
I am sure you and also Osholt are correct, but i am a newbie, and I do not know even know how to do a sysResotre.

I made sure I had my fingers crossed when I was deleting those entries in the registry for the .BAT extension.

I like windows 7 now much more once I found and downloaded explorer++, before that I really was going to go back to XP, because I disliked the file manager that comes with windows 7, but now, I am happy using explorer++. It is so neat.

newWinUser
My System SpecsSystem Spec
Reply

 HELP!! I changed my BAT file association and can't get it back




Thread Tools



Similar help and support threads for2: HELP!! I changed my BAT file association and can't get it back
Thread Forum
.msi File Association Has Been Changed General Discussion
FLV File Association Chillout Room
Multiple file types association for a single file extension General Discussion
Solved Changed a file Association and it changed everything to a link file General Discussion
How do I change a file's file type (not only file association)? General Discussion
Changed file permissions now cant change them back General Discussion
Solved Accidentally changed a .pst file association Microsoft Office

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 04:15 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33