Here's a warning, while checking-in via Tortoise SVN today I must have previewed (opened with....) a bat file and forgotten to untick the "always open with", or perhaps there was no option, I can't remember. So this caused all bat files to open with notepad when double-clicked in the shell.
Be warned that web searches on this problem produce countless pages of results which are misleading, duplicated, wrong or dangerous (by asking you to blindly merge registry data they supply). Avoiding dangerous routes, I dumped and compared various keys from another okay Win7 machine with my cactus one, but found no differences, probably because there are so many places to look you can never find them all. My first test was to merge back HKCR\CLSID batfile from a good machine but it made no difference. Eventually I noticed one of the web pages mentioned this key: HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat There was a subkey called UserPreference (or something like that, I forget, I was flustered) with a single entry pointing to notepad. I deleted that and now bat files are back to normal. And so I lose again over an hour of otherwise paid work time, more hair and more sanity. You couldn't make this shit up. Greg
