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: Can not run a .bat file, opens in Notepad...

18 May 2010   #1

Window 7 Professional 32-Bit
Can not run a .bat file, opens in Notepad...

Just tried to run a .bat file and it just opens up in notepad so it appears the file association has been mixed up.

I have tried running the attached file as a registry fix which was on another website for .bat file association problems but the error also shown in the screenshot appeared, I have looked at a process monitor to see what is currently accessing the registry but it's just svchost.exe so I can not understand why it won't merge. I have tried deleting the .bat file registry entry as a lot of threads on google suggest but it still doesn't re-create the association.

Anyone got any ideas?


Attached Thumbnails
Can not run a .bat file, opens in Notepad...-error.jpg  
My System SpecsSystem Spec
18 May 2010   #2

Window 7 Professional 32-Bit

Sorted it, nevermind!
My System SpecsSystem Spec
20 Jul 2010   #3

Windows 7
More details please

I'm receiving the same message you did with I try to merge the .reg file. Would you please share with me how you got past it? I don't understand what "sorted it" means (I can be slow sometimes ).

Thank you
My System SpecsSystem Spec


 Can not run a .bat file, opens in Notepad...

Thread Tools

Similar help and support threads
Thread Forum
At start up notepad opens automatically with a code
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21769 IconResource=%SystemRoot%\system32\imageres.dll,-183 How do I fix this?
General Discussion
How can I write a batch file that opens a file in a program?
I wrote this batch file which does what I want it to do so far. @echo off "C:\Users\xxxxxx\Documents\HideTaskbar\HideTaskbar.exe" "C:\Program Files (x86)\VideoLANold\VLC\vlc.exe" "C:\Users\xxxxxx\Documents\HideTaskbar\ShowTaskbar.exe" exit
General Discussion
when open a word file or pwrpnt file another file is opens
God bless you, I am not a computer person please help me to fix the problem I have. Every time I open a word, power point and note pad program another file is opens with that (with a infinity sign in the front with the same extension ) is that a thread or how can I stop this thank you...
Microsoft Office
Text File does not open with Notepad
Hi All, I installed a software called ultraEdit on my windows 7 machine, but then after uninstalling it my text documents no longer use Notepad as the default program to open. I tried changing the default program that text documents open with, but it is not letting me. Could anyone give me some...
.QML File Association with Notepad
Hey guys, Last night tried to open a .qml file with notepad. All fine and well. The problem is that I forgot to untick the "Always open file with...", and now by having a look around, all .qml files are opening with notepad. Unfortunately, my system restore does not work, therefore I...
General Discussion
Trying to copy txt file in Notepad. "Notepad: Access is denied"
:mad::confused::cry: If I had known how much hassle Win 7 was I would have stuck with XP! Well I suppose its a learning curve.... Latest major hassle, I have a text file on my E:\drive, this is a copy of my XP C:\ drive before I installed Win 7 on it. I have now been able to get to it...
General Discussion

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 02:10.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App