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?!

09 Jan 2010   #1
gamepoint

windows 7 professional x64 bit RTM
 
 
.bat files open with notepad instead of running..help?!

how to changee .bat file open with??my .bat files open with notepad


My System SpecsSystem Spec
.
09 Jan 2010   #2
Capt.Jack Sparrow

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 

Hi,

When you save a bat file you have to change the extension to All Files
After your File Name type .bat (Test.bat)
Also make sure under Control Panel > Programs > Default Programs > Set Associations
Under Bat file it does say Windows Batch File

Hope this helps,
Captain
My System SpecsSystem Spec
09 Jan 2010   #3
gamepoint

windows 7 professional x64 bit RTM
 
 

Quote   Quote: Originally Posted by Capt.Jack Sparrow View Post
Hi,

When you save a bat file you have to change the extension to All Files
After your File Name type .bat (Test.bat)
Also make sure under Control Panel > Programs > Default Programs > Set Associations
Under Bat file it does say Windows Batch File

Hope this helps,
Captain
thanx for quick response..but..i still dont get it..under set association and at .bat file..it does say "windows batch file" under description section.But,under current default section,still notepad.And when i clicked change program.The recommended one is only notepad.So??
My System SpecsSystem Spec
.

09 Jan 2010   #4
Capt.Jack Sparrow

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 

Was this working fine before ??
My System SpecsSystem Spec
09 Jan 2010   #5
gamepoint

windows 7 professional x64 bit RTM
 
 

i'm sorry..im not sure bout that...i realised it yesterday when i tried to open .bat file that i've created..by default,what exactly .bat files will open with?
My System SpecsSystem Spec
09 Jan 2010   #6
Capt.Jack Sparrow

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 

I guess you might have changed the File type to always to open with Notepad. I will attach a reg file which might fix this issue. Run the reg file and reboot the system one then try.

Associate BatFileExecution.reg

Hope this helps,
Captain


My System SpecsSystem Spec
09 Jan 2010   #7
gamepoint

windows 7 professional x64 bit RTM
 
 

thanx mate..i'll try
My System SpecsSystem Spec
09 Jan 2010   #8
gamepoint

windows 7 professional x64 bit RTM
 
 

now it works!!it opens with cmd.exe right?
+rep for u..thanx
My System SpecsSystem Spec
09 Jan 2010   #9
Capt.Jack Sparrow

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 

Quote   Quote: Originally Posted by gamepoint View Post
now it works!!it opens with cmd.exe right?
+rep for u..thanx
Your Most Welcome Mate
Thank You for Posting Back
My System SpecsSystem Spec
18 Mar 2010   #10
donach

windows 7 home premium
 
 

I've got a related problem. I can't get a batch file to run. I've manually associated it with the cmd processor which opens the cmd line but doesn't run the batch file. The reg file above won't run: it says some keys are open by the system or other processes.
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 21:30.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App