Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have made a batch file named a.bat when i run this file instead of executing it is opening in notepad. Not only this file but every file on my os which has .bat extension there are opening in notepad. what should i do now ?
Posted
Updated 19-Mar-14 5:51am
v2

1 solution

It means that somewhere down the line you have changed the file association for .BAT files, and teh only thing to do is change it back!
Open Regedit and look at:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT
If you delete this, it should reset the next time you reboot and run it instead.
 
Share this answer
 
Comments
sarthakss shah 20-Mar-14 2:49am    
Thanks buddy that is great and working...
OriginalGriff 20-Mar-14 5:12am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900