Hmm - in Win7, there's no Explorer GUI way of changing .bat file extensions (as 
far as I can find). How did Greg manage to change it in the first place?

Cheers
Ken

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of mike smith
Sent: Wednesday, 25 January 2012 10:22 AM
To: ozDotNet
Subject: Re: [OT] bat file association problem

On Tue, Jan 24, 2012 at 7:55 PM, Greg Keogh <[email protected]> wrote:
> 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).

I'm happy enough to copy paste stuff from the web if I can read and understand 
what it does.  If it pokes around in areas of the registry to do with drivers, 
and it looks dodgy...  then no.

Anyone found a trustworthy registry cleaner these days?  No?  My thoughts too.  
Not even really sure if it's necessary.

> 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.
>
>

An app that logged writes to the registry in some way that you could revert or 
roll them back would be nice.

>
> 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.

Reply via email to