I use WinXP sp3, and I have created a .bat file that does something. When I double click on it, a Notepad is opened and I can edit the batch file - but it is not run ??!?!
I expect that when I double click a .bat file - it should run, no? How can I fix this?
Check if you have this key in your registry :
if you have one it means that the .bat extension is currently associated with notepad (or another program defined by the "Progid" key under this node).
Backup you registry and remove this .bat "UserChoice" node.
your .bat files should then run normally.
Windows 7 does that crap all the time.
Best to keep a handy-dandy lil .reg file around to fix it - easier and simpler than having to go edit the registry every time.
Copy this - paste in notepad - give it a filename you can remember so you'll know what it does and what it's for, and when you paste it into notepad, make sure you don't have any extra spaces or carriage-returns. doesn't 'always' affect it, but i've seen it fewk up on people a time er two:
----------everything below this line - do not include this line----------
Check to be sure it is an executable file under the properties security tab.
Another common mistake is to have "hide extensions of known file types" set, meaning that although the file name says
"----.bat"
it is really
"-----.bat.txt".
You need to go into "Folder Options --> View Options" to untick this.
Save the following code as a .REG file, by adding the following code in a new text document.
Don't forget to remove the .txt when you save it!
Right-click and Merge the new .REG file.
That's all! Tested & working:
I was struggling from the last two days, i have gone through the many post and almost every where telling the same thing go through the below and delete the file
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.bat\UserChoice, but in my Registry i could not Find out the FileExts then finally i got the solution. click on the below link http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html select the BAT Option click the bat link, exe will be download run the downloaded exe. Restart the system it will work fine.