Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #9916

Re: JScript - is a file of a known Type?

From "Dave \"Crash\" Dummy" <invalid@invalid.invalid>
Newsgroups microsoft.public.scripting.jscript, microsoft.public.scripting.vbscript, comp.lang.javascript
Subject Re: JScript - is a file of a known Type?
Date 2012-01-04 09:40 -0500
Organization A noiseless patient Spider
Message-ID <je1ocf$e6m$1@dont-email.me> (permalink)
References <3wJilUEcZzAPFwTs@invalid.uk.co.demon.merlyn.invalid> <je0ce6$3q1$1@dont-email.me> <je0plc$u6g$1@news.albasani.net> <je1mtu$50r$1@dont-email.me>

Cross-posted to 3 groups.

Show all headers | View raw


Mayayana wrote:
> I'm still not sure I get what Dr J R Stockton is after, but the
> Registry system is straightforward.
> 
> HKCR\.txt default value: "txtfile" HKCR\txtfile default value: "Text
> Document"
> 
> PerceivedType is not related to file registration. According to MS
> it's actually meant to be used with Windows Find/Search. 
> http://msdn.microsoft.com/en-us/library/aa965719%28v=vs.85%29.aspx
> 
> Unless someone is building a shell view I don't see the point of
> needing the file type's class name. The only need for that in the
> first place is so that the way of looking up files can work despite
> changes: If Firefox takes over .html from IE, or IE changes it back,
> the current status can still be tracked via HKCR\.html.
> 
> The existence of HKCR\.txt confirms that it's a registered type. The
> HKCR\[extension key default value] (HKCR\txtfile\) subkeys then
> provide other information, like icon, default program for that file
> type, etc.
> 
> I see what you mean about .x. I wonder how such a key got written in
> the first place. It doesn't have any purpose that I can see. I have
> very few of those in my Registry. The only thing I can guess is that
> some uninstallers remove the default value for a program's extensions
> during uninstall but don't remove the extension key itself.
> 
> In any case, it doesn't change the design. "Text" is not a registered
> file type. .x is not really registered. So I guess I should amend
> what I said above: To be thorough one should confirm there's a
> default program for a file type, under: HKCR\[extension key default
> value]\shell\open\command\
> 
> That gets back to why anyone cares about the registered file type
> name in the first place. Usually the point of looking up this info.
> is to find the default program.

The trouble with "file type" as stored in the registry and read by
"objFile.type" is that it can be and often is changed by applications. For
example, on my computer the ".bmp" file mentioned above is a "Paint Shop
Pro 5 Image," not a "Paint.Picture."
-- 
Crash

Today is the first day of the rest of your life, and there's not a
damned thing you can do about it.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

JScript - is a file of a known Type? Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-03 17:09 +0000
  Re: JScript - is a file of a known Type? "Mayayana" <mayayana@invalid.nospam> - 2012-01-03 21:13 -0500
    Re: JScript - is a file of a known Type? Todd Vargo <tlvargo@sbcglobal.netz> - 2012-01-04 00:55 -0500
      Re: JScript - is a file of a known Type? "Mayayana" <mayayana@invalid.nospam> - 2012-01-04 09:18 -0500
        Re: JScript - is a file of a known Type? "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2012-01-04 09:40 -0500
          Re: JScript - is a file of a known Type? "Mayayana" <mayayana@invalid.nospam> - 2012-01-04 10:23 -0500
            Re: JScript - is a file of a known Type? Todd Vargo <tlvargo@sbcglobal.netz> - 2012-01-04 20:22 -0500
            Re: JScript - is a file of a known Type? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-05 22:01 -0800
              Re: JScript - is a file of a known Type? John G Harris <john@nospam.demon.co.uk> - 2012-01-06 11:04 +0000
                Re: JScript - is a file of a known Type? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-06 04:26 -0800
                Re: JScript - is a file of a known Type? John G Harris <john@nospam.demon.co.uk> - 2012-01-06 14:58 +0000
                Re: JScript - is a file of a known Type? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-06 12:27 -0800
              Re: JScript - is a file of a known Type? Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-07 21:54 +0000
          JScript - WScript output similar to CScript output> Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-05 20:29 +0000
            Re: JScript - WScript output similar to CScript output> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-05 22:05 -0800
              Re: JScript - WScript output similar to CScript output> Bwig Zomberi <zomberiMAPSONNOSPAM@gmail.invalid> - 2012-01-06 14:31 +0530
                Re: JScript - WScript output similar to CScript output> Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-07 21:14 +0000
              Re: JScript - WScript output similar to CScript output> Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-07 21:10 +0000
                Re: JScript - WScript output similar to CScript output> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-08 14:52 -0800
                Re: JScript - WScript output similar to CScript output> Dr J R Stockton <reply1202@merlyn.demon.co.uk> - 2012-01-09 23:45 +0000
                Re: JScript - WScript output similar to CScript output> Todd Vargo <tlvargo@sbcglobal.netz> - 2012-01-10 00:27 -0500
                Re: JScript - WScript output similar to CScript output> Dr J R Stockton <J.R.Stockton@physics.org> - 2012-01-10 13:40 -0800
                Re: JScript - WScript output similar to CScript output> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-10 17:04 -0800
                Re: JScript - WScript output similar to CScript output> Dr J R Stockton <reply1202@merlyn.demon.co.uk> - 2012-01-12 23:43 +0000
                Re: JScript - WScript output similar to CScript output> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-12 22:36 -0800
                Re: JScript - WScript output similar to CScript output> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-12 22:47 -0800
                Re: JScript - WScript output similar to CScript output> Dr J R Stockton <J.R.Stockton@physics.org> - 2012-01-14 12:15 -0800
            Re: JScript - WScript output similar to CScript output> Bwig Zomberi <zomberiMAPSONNOSPAM@gmail.invalid> - 2012-01-06 14:43 +0530
            Re: JScript - WScript output similar to CScript output> Todd Vargo <tlvargo@sbcglobal.netz> - 2012-01-06 05:20 -0500
              Re: JScript - WScript output similar to CScript output> "Mayayana" <mayayana@invalid.nospam> - 2012-01-06 08:33 -0500
                Re: JScript - WScript output similar to CScript output> Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-07 20:11 +0000

csiph-web