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: .bat files open with notepad instead of running..help?!

18 Mar 2010   #11
z3r010

 

Try the file from here - Default File Type Associations - Restore


My System SpecsSystem Spec
.
30 Sep 2013   #12
Shankar

64 bit
 
 

I am facing the issue like opening batch file will open with notepad.
I used above registry but it says " Some keys are open by the system or processes "
My System SpecsSystem Spec
30 Sep 2013   #13
Slartybart

x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem
 
 

Default File Type Associations - Restore
bat - Batch files. from the tutorial


Quote   Quote: Originally Posted by Shankar View Post
I am facing the issue like opening batch file will open with notepad.
I used above registry but it says " Some keys are open by the system or processes "
My System SpecsSystem Spec
.

04 Oct 2014   #14
technicaltitch

Windows 7 Home Premium 64bit
 
 

Did anyone solve the "in use by a process" error? I'm having the same issue. Looked at the Win7 tutorial but nothing on there helped (and I'm working with Win8.1). Thanks

UPDATE: I solved my problem, but not this error message. I manually went through the keys suggested and corrected them but still got the problem. This link solved it:

http://social.technet.microsoft.com/...w7itprogeneral

Before doing this I'd advise backing up your registry, by selecting [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat\] in regedit and file, export. Then if this breaks anything you can simply import the file.

Then delete the following keys:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat\OpenWithList]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat\OpenWithProgids]

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT\UserChoice

And double click a batch file to see if it executes.
My System SpecsSystem Spec
12 May 2015   #15
Zaheer Pasha

WIN7 64
 
 

Hi Shyam,

I too am facing the same issue on a WIN7 32bit machine. i tried using the registry you posted, but it didnt run to update successfully. Can you please help me out.

thanks in advance.
My System SpecsSystem Spec
12 May 2015   #16
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by donach View Post
The reg file above won't run: it says some keys are open by the system or other processes.
Quote   Quote: Originally Posted by Shankar View Post
I used above registry but it says " Some keys are open by the system or processes "
Quote   Quote: Originally Posted by technicaltitch View Post
Did anyone solve the "in use by a process" error? I'm having the same issue.
Quote   Quote: Originally Posted by Zaheer Pasha View Post
I too am facing the same issue on a WIN7 32bit machine. i tried using the registry you posted, but it didnt run to update successfully.
Start Windows 7 in Safe Mode and repeat the .reg file merge.
My System SpecsSystem Spec
Reply

 .bat files open with notepad instead of running..help?!




Thread Tools




Similar help and support threads
Thread Forum
Accidently set Notepad to open btn files
I was trying to open this btn file and windows told me it does not recognized the file oh chose to try a program from a list. i chose notepad but i forgot to uncheck "always use the selected program to open this type of file". how do I undo that?
General Discussion
!!URGENT!! .bat files not running, opening in Notepad instead
So the title says it all, but I have even tried some regedit fixes. but under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\ there is no .bat folder! HELP?! :mad:
Software
.reg files open Notepad - do not change registry to read older files
Running Win7Pro 64-bit. Am unable to open older Office 97 files with Office2003 which is installed and running fine. I found a couple of files here and elsewhere with .reg extensions that were supposed to make the necessary registry changes. eg. "UnlockWord.reg" and a more elaborate-looking...
Microsoft Office
REG files open in Notepad instead of merging
This is something someone will know how to fix in about two seconds. For some reason my H-P Notebook/Vista Home Prem 64 is opening registry scripts in Notepad rather than merging them and changing or adding the new keys to the registry. It is now defaulted to this suddenly for some reason. You...
General Discussion
Help .BAT files open in notepad instead of running
Please help me .BAT files are now opening in notepad instead of running like they used to. This problem just recently occured and up until then they were running fine. I have tried to change the default program but i dont know what to change it to. Any help is greatly appreciated thanks.
General Discussion
files open up to notepad
i need help trying to fix my exe files back and allowing my programs to run again
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 22:22.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App