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
newWin7User

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
osholt

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
newWin7User

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
osholt

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
gregrocker

 

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
newWin7User

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
Thread Forum
Changed text file default open and cant change it back
So I was looking into making a batch file, followed some bad advice, and set my notepad files to open with cmd. Now even if I go and set default program, it does not save it and will open with cmd the 2nd time. It seems the option to always use the selected type of program is grayed out. How can I...
Software
.msi File Association Has Been Changed
Here's a weird one folks. My wife recently downloaded PCHealthDoc, and somehow or other it has changed the file association for .msi install files. That's fine, I know how to reassign it, but where exactly is the Windows Installer, and what's the name of the file? I've done some searches but can't...
General Discussion
Changed a file Association and it changed everything to a link file
LIke an idiot I changed a associate file and it has turned everything into a lnk so I cant open any programs or anything at all any solutions would be greatly appre:cry:ciated
General Discussion
How do I change a file's file type (not only file association)?
I need to change a zip file to an epub file. I have heard this can be done, but when I add the .epub after the file name, I notice the file is still actually zip type file when I right click properties. This is causing a problem when I try to open it in in different ebook reader programs. I...
General Discussion
Changed file permissions now cant change them back
Hello i am running win 7 ultimate x64 and have this major problem, here is what i did: i needed to pawn my laptop for a short time and didnt want my files to be viewed by anyone while it was not in my possesion, so what i did i changed the file permissions of my c: drive so that only admin had...
General Discussion
Accidentally changed a .pst file association
I was trying to look into an Outlook 2007 .pst file with Notepad in Windows 7 HP. Guess what... I didn't uncheck "Always use this program..." I don't know what to re-associate it with. Any help would be appreciated. Rusty
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 11:55.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App