Re: Custom Files?



Thanks Jay. I'll use a fairly long file suffix so its less likely to clash
with anything and its only for a limited number of users anyway.

"Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@xxxxxxxxxxxxx> wrote in
message news:%23qs%232lr9FHA.1440@xxxxxxxxxxxxxxxxxxxxxxx
> My take on that article is if you plan on having a Public File type, then
> yes you should register it with the IANA, however if you are planning a
> Private File Type, then I wouldn't worry about it.
>
> Of course not registering it, may mean another app would start using it &
> potentially cause problems for you.
>
> I would also consider my target audience in deciding to register the type
> or
> not.
>
> I would also consider if the documents are going potentially to be placed
> on
> web servers as hyper links...
>
> --
> Hope this helps
> Jay [MVP - Outlook]
> .NET Application Architect, Enthusiast, & Evangelist
> T.S. Bradley - http://www.tsbradley.net
>
>
> "Flashster" <flashster2003@xxxxxxxxxxx> wrote in message
> news:%23MaRYSq9FHA.2036@xxxxxxxxxxxxxxxxxxxxxxx
> | Thanks. I'll look into the XML format I think. But regarding the custom
> file
> | extension: Do I need to apply to the relevent organisations to use a
> custom
> | file extension? In the Microsoft info below, it mentions submitting a
> | request to the IANA for the file type??
> |
> |
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/fileassociations/fa_file_types.asp
> |
> | This is only a small application which is being provided to a small
> number
> | of individuals in a single organisation, so surely I don't have to do
> | this....do I?
> |
> |
> |
> |
> |
> |
> |
> | "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@xxxxxxxxxxxxx> wrote in
> | message news:Op1y%23Dq9FHA.3724@xxxxxxxxxxxxxxxxxxxxxxx
> | > Flashster,
> | > I would define a custom extension for you app. You can use a setup
> packed
> | > to
> | > define the extension when you deploy the app.
> | >
> | > To ensure that the file being read can be understood by my app, rather
> | > then
> | > use plain text, I would use a "structured format", such as XML or
> Binary
> | > Serialization.
> | >
> | > This way when the program attempted to deserialize the document I
> would
> | > get
> | > an exception if the document is not in the expected format...
> | >
> | > As Chris suggests, encrypting the document can also be useful.
> | >
> | > --
> | > Hope this helps
> | > Jay [MVP - Outlook]
> | > .NET Application Architect, Enthusiast, & Evangelist
> | > T.S. Bradley - http://www.tsbradley.net
> | >
> | >
> | > "Flashster" <flashster2003@xxxxxxxxxxx> wrote in message
> | > news:%23LEpgEo9FHA.1028@xxxxxxxxxxxxxxxxxxxxxxx
> | > | My program writes text to a file. Currently the files have a suffix
> of
> | > | '.log' . I want to make sure that the user does not attempt to open
> a
> | > file
> | > | that was not originally created by my program.
> | > |
> | > | I don't really want to write some code to the top of the text file
> that
> | > I'd
> | > | have to filter out each time I read it, so how else would I do it?
> | > |
> | > | Would I perhaps:
> | > | i) create a custom file type with a custom suffix and get the system
> to
> | > | associate that suffix with my program (if so how??)
> | > | ii) set an attribute of the file (e.g. a "creator" attribute, if
> there
> | > is
> | > | one?) to my program name and check it prior to opening the file
> (again,
> | > if
> | > | so how??)
> | > |
> | > |
> | > |
> | >
> | >
> |
> |
>
>


.



Relevant Pages

  • Re: open any file with vbscript ?
    ... If a file type has been properly registered to a particular program, calling run on a file of that type executes the program. ... In other words, oShell.Run the FILE NAME, (rather than the app), ... For example, if extension is xls it should start Excel, if extension is psd it should open photoshop, etc. ...
    (microsoft.public.scripting.vbscript)
  • Re: Custom Files?
    ... Private File Type, then I wouldn't worry about it. ... I would also consider my target audience in deciding to register the type or ... But regarding the custom ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Changing file extension
    ... I've seen other apps do this, with seeming impunity, many times. ... extension, but registers the extension to the VB6 app. ... Access shows up in the context menu as an alternate way to open the file type, ...
    (microsoft.public.vb.general.discussion)
  • Re: IE should not open this file type
    ... No need for another file type for the same extension. ... default app for that filetype would do. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: About File "types" and Office 12.1 Service Pack and double-clicking
    ... I'm sharing my observations not as an MVP but as someone who does technical support for a living. ... which means they don't want others taking advantage of that file type and allowing a malicious file to launch Word. ... Allow me to save/edit/open a word document with no extension, ... Although Apple deprecated file type and creator codes some time ago, they still haven't removed support for them. ...
    (microsoft.public.mac.office.word)