View Single Post
  #5 (permalink)  
Old 11-02-2005, 04:34 PM
James Egan
Guest
 
Posts: n/a
Default Re: Running program files on XP with non-executable extension?

On 2 Nov 2005 06:59:31 -0800, "Dustin Cook"
<bughunter.dustin@gmail.com> wrote:

>> As an example you might try renaming a MS Word .doc file to (say) .hje
>> or some other extension which doesn't have a specific association with
>> another program and then double clicking it. You will see that it
>> still opens in Word because the file structure is still recognised as
>> a word document even though you renamed it.

>
>Mine ask what to open the program with when I do that. :)
>
>Xp Pro sp1a on both machines. I'll test an sp2 machine at work.


Hmm. I wonder why that is?

Which version of MS Word did you use? With Word 2000 it opens
correctly (with a wrong extension) on both win9x and winxp.

Incidentally, Bart Bailey posted a registry hack (see below) to get
all unassociated extensions to open with notepad.


Jim.


Newsgroups: alt.comp.anti-virus
Subject: Re: Wirtualna Polska's antivirus program??
From: Bart Bailey <bartman@nethere.net>
Date: Thu, 31 Jul 2003 18:27:17 -0700

In Message-ID:<qr9jivsker61p8nu3k66bkhofjjfn9n75e@4ax.com> posted on
Fri, 01 Aug 2003 01:10:22 +0100, James Egan wrote:

>(IIRC Bart Bailey has a reg hack solution for all unregistered
>suffixes)


OK, I got to poking around in my registry found it.
I think this will work if you merge it:

---begin---
REGEDIT4

[HKEY_CLASSES_ROOT\Unknown]
"AlwaysShowExt"=""

[HKEY_CLASSES_ROOT\Unknown\shell]

[HKEY_CLASSES_ROOT\Unknown\shell\Notepad]
@="&Notepad"

[HKEY_CLASSES_ROOT\Unknown\shell\Notepad\Command]
@="notepad.exe %1"

---end---
be sure to leave a blank line at the bottom,
create an extensionless file an try it.

Bart



Reply With Quote