Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Manage file type properties?

Manage file type properties?

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdotnetcomtutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nagaraj Muthuchamy
    wrote on last edited by
    #1

    How to fetch and edit the properties of a File Type. For eg: If the File type is ".txt" Name of the default application associated. Icons associated with this file type. Is it possible using .NET Framework Managed Code? Thanks, Nagaraj

    Programmer (ror)

    G T 2 Replies Last reply
    0
    • N Nagaraj Muthuchamy

      How to fetch and edit the properties of a File Type. For eg: If the File type is ".txt" Name of the default application associated. Icons associated with this file type. Is it possible using .NET Framework Managed Code? Thanks, Nagaraj

      Programmer (ror)

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      All this information is stored in system registry. You can either call registry methods directly or write a class that wraps low level registry calls into high level methods.

      Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion

      1 Reply Last reply
      0
      • N Nagaraj Muthuchamy

        How to fetch and edit the properties of a File Type. For eg: If the File type is ".txt" Name of the default application associated. Icons associated with this file type. Is it possible using .NET Framework Managed Code? Thanks, Nagaraj

        Programmer (ror)

        T Offline
        T Offline
        Thomas Stockwell
        wrote on last edited by
        #3

        The easiest way would be to create an .msi installer that automatically associates the said filetype with that of the installed application. The other way would be: go through registry as previous CP member mentioned. Be sure your application has the proper administrative priviledges if you plan to alter the registry.

        Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups