The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Mr Earl on August 05, 2007, 03:34:44 PM

Title: .asm File Types set to VCExpress.asm.8.0
Post by: Mr Earl on August 05, 2007, 03:34:44 PM
I installed Microsoft VisualC++ 2005 Express Edition last year and played with it a while, but then NEVER used it again.  This week MS sent me a notice that I should re-register my copy.  I shouldn't have, but I did re-register.  Since then ALL my .asm files show up in Windows Explorer NOT as .asm, but as type "VCExpress.asm.8.0, and the "opens with" program is set to the VCExpress program.

I tried to reset the "opens with" program to my editor (Vim), but when I browse and select Vim as the "opens with" program, it just ignores the request .  I can reset it to use Wordpad or Notepad.

I uninstalled VCExpress, but that didn't change the "type" back to .asm.   How can I get the file type reset to .asm?
Title: Re: .asm File Types set to VCExpress.asm.8.0
Post by: hutch-- on August 05, 2007, 04:30:03 PM
You should be able to do it in Explorer where you enable extensions and set ASM to the edtor of your choice. Alternatively I would do a search of the registry to find the file extension string and change it there.
Title: Re: .asm File Types set to VCExpress.asm.8.0
Post by: jdoe on August 05, 2007, 05:32:00 PM
Mr Earl,

This is the registry key hutch is talking about. Just set the path of your .asm editor.


asm.reg



Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.asm]
@="asm_auto_file"

[HKEY_CLASSES_ROOT\asm_auto_file]
@=""

[HKEY_CLASSES_ROOT\asm_auto_file\shell\open\command]
@="\"C:\\AZIMUT\\BIN\\notepad2.exe\" \"%1\""




Title: Re: .asm File Types set to VCExpress.asm.8.0
Post by: Mr Earl on August 05, 2007, 06:30:07 PM
Thanks Hutch & jdoe, the registry change fixed it.  I also removed a folder under HKEY_CLASSES_ROOT\.asm called "Persistent Handler".  Is that what was causing me not to be able to change it from "Properties"?

This was causing me a lot of problems with my editor until I realized what was going on.
Title: Re: .asm File Types set to VCExpress.asm.8.0
Post by: GregL on August 05, 2007, 06:53:43 PM
Yeah, that is a really annoying thing about VC++ 2005 Express, among others, it just takes over your file associations, doesn't even ask.  :tdown