"MikeB" <> wrote in message news:9ed9ef6b-8a0d-463d-990e-…
> OK, here is my short question: Is there a way in Windows Vista
> (Ultimate, SP2) that I can edit and alter file associations other than
> the method outlined in the Help file (which is to right-click on a
> file, then click on Open With …)?
>
> Long explanation.
>
> I’m having network troubles, so I reboot my router and my Windows,
> just to make sure everything is clean.
>
> During startup, a file opens on my desktop in in TextPad (a utility
> that I have installed since December, but have not used or made
> changes to in recent months). This file is in C:\Users\Mike\AppData
> \Local\Temp and is named nos_uninstall_Adobe.bat
>
> It seems to be a part of an Adobe installation cleanup:
>
> @echo off
> :again
> del "C:\Users\Mike\AppData\Local\Temp\nos_uninstall_Ad obe.dll" >> NUL
> sleep 1
> if exist "C:\Users\Mike\AppData\Local\Temp\nos_uninstall_Ad obe.dll"
> goto again
> del "C:\Users\Mike\AppData\Local\Temp\nos_uninstall_Ad obe.bat"
>
> Now I’m trying to run this and I just can’t. If I right-click on the
> file, there is no Open With… in the context menu. THe default action
> seems to be to open the file with TextPad. However, if I check
> TextPad’s Preferences, there are no filetypes associated with TextPad
> (this is how I recall I installed it) Furthermore, I’m not so silly as
> to associate a .bat file by default with a text editor, though I can
> see how a person might make such a mistake.
>
> If I click on Edit in the context menu, Textpad also opens the file.
>
> I tried Run from the Start menu, typing in the path and filename and
> lo and behold, Textpad again.
>
> What the heck happened and is going on here?
>
> Oh BTW. Yes, I am Admin and have Admin rights.
>
> {Omitted obligatory anti-Vista rant} 🙂
>
> Thanks for any help or pointers.
> OK, here is my short question: Is there a way in Windows Vista
> (Ultimate, SP2) that I can edit and alter file associations other than
> the method outlined in the Help file (which is to right-click on a
> file, then click on Open With …)?
>
> Long explanation.
>
> I’m having network troubles, so I reboot my router and my Windows,
> just to make sure everything is clean.
>
> During startup, a file opens on my desktop in in TextPad (a utility
> that I have installed since December, but have not used or made
> changes to in recent months). This file is in C:\Users\Mike\AppData
> \Local\Temp and is named nos_uninstall_Adobe.bat
>
> It seems to be a part of an Adobe installation cleanup:
>
> @echo off
> :again
> del "C:\Users\Mike\AppData\Local\Temp\nos_uninstall_Ad obe.dll" >> NUL
> sleep 1
> if exist "C:\Users\Mike\AppData\Local\Temp\nos_uninstall_Ad obe.dll"
> goto again
> del "C:\Users\Mike\AppData\Local\Temp\nos_uninstall_Ad obe.bat"
>
> Now I’m trying to run this and I just can’t. If I right-click on the
> file, there is no Open With… in the context menu. THe default action
> seems to be to open the file with TextPad. However, if I check
> TextPad’s Preferences, there are no filetypes associated with TextPad
> (this is how I recall I installed it) Furthermore, I’m not so silly as
> to associate a .bat file by default with a text editor, though I can
> see how a person might make such a mistake.
>
> If I click on Edit in the context menu, Textpad also opens the file.
>
> I tried Run from the Start menu, typing in the path and filename and
> lo and behold, Textpad again.
>
> What the heck happened and is going on here?
>
> Oh BTW. Yes, I am Admin and have Admin rights.
>
> {Omitted obligatory anti-Vista rant} 🙂
>
> Thanks for any help or pointers.
First, I think Shift-right-click may give you the ‘Open with…’ option.
But I don’t think that will help with a bat file.
Have a look at the batfile registry entry.
My registry has this for Edit:
HKEY_CLASSES_ROOT\batfile\shell\edit\command
In the right pane: (Default) REG_EXPAND_SZ %SystemRoot%\System32\NOTEPAD.EXE %1
and this for Open:
HKEY_CLASSES_ROOT\batfile\shell\open\command
In the right pane: (Default) REG_SZ "%1" %*
