Wrong icons keep sticking

Jul 12, 2008
272
0
Las Vegas, NV
I am using TCMD 17.

If I associate my btm files with TCC, all my text files then have a TCC icon. If I associate all my TXT files with Notepad, all my BTM files then have a Notepad icon.

I tried uninstalling TCMD and then reinstalling, but that didn't fix it. I can't tell now without checking whether I am looking at a BTM file or a text file.

What caused this, and how do I correct it?

Regards,
Chuck Billow
 
May 20, 2008
9,350
62
Syracuse, NY, USA
Try these. What do you see?
Code:
v:\> assoc .btm
.btm=TCC.Batch

v:\> ftype tcc.batch
tcc.batch="G:\TC17\TCC.EXE" /c "%1" %*

v:\> assoc .txt
.txt=txtfile

v:\> ftype txtfile
txtfile=C:\Windows\system32\NOTEPAD.EXE %1
 
Jul 12, 2008
272
0
Las Vegas, NV
Vince,

Here's what I ended up with:

[C:\]assoc .btm
.btm=btmfile

[C:\]type btmfile
TCC: (Sys) The system cannot find the file specified.
"C:\btmfile"

[C:\]assoc .txt
.txt=txtfile

[C:\]ftype txtfile
txtfile=C:\WINDOWS\system32\NOTEPAD.EXE %1

I mistakenly answered the e-mail notification I received of this post, so if duplicates or errors arise, my apologies.

Chuck
 
May 20, 2008
9,350
62
Syracuse, NY, USA
You missed one.

FTYPE btmfile

But "btmfile" seems old fashioned. You might try starting an elevated TCC session and running TCCBATCH.BTM which should be found in the same directory as TCC.EXE. That might straighten things out. I only say "Y" to this one
Code:
Do you want to make TCC the default handler for .BTM files [Y/N] ?
I say "N" to the others, .BAT and .CMD
 
Jul 12, 2008
272
0
Las Vegas, NV
I may have fixed it, Vince. I added

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.txt\DefaultIcon]
@="C:\\Users\\CWBillow\\AppData\\Roaming\\Microsoft\\Internet Explorer\\Quick Launch\\~~images~~\\Icons\\notepadwin.ico"

To the registry.

There was no default icon entry for txt. We'll see!

Regards,
Chuck
 
May 20, 2008
9,350
62
Syracuse, NY, USA
I hope you did. How did you get that in plain text? Here (Win7) I have no icon mentioned under .txt, but I have
Code:
[HKEY_CLASSES_ROOT\txtfile\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6d,00,\
  61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,\
  00,30,00,32,00,00,00
which translates into
HKCR
txtfile
DefaultIcon
(Default) REG_EXPAND_SZ
%SystemRoot%\system32\imageres.dll,-102