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. C#
  4. "Executing" data file

"Executing" data file

Scheduled Pinned Locked Moved C#
csharpquestion
3 Posts 2 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.
  • H Offline
    H Offline
    hain
    wrote on last edited by
    #1

    If I have a data file with a specific extension, and I register this extension to a C# executable. How can the program load the data file? I.e., I want to start the executable by double-clicking on an appropriate data file, and have the executable load that data file. Thanks, Tom

    G 1 Reply Last reply
    0
    • H hain

      If I have a data file with a specific extension, and I register this extension to a C# executable. How can the program load the data file? I.e., I want to start the executable by double-clicking on an appropriate data file, and have the executable load that data file. Thanks, Tom

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      The name of the file is send as argument to the application. The args parameter of the main method is populated with the arguments that is sent to the application.

      Despite everything, the person most likely to be fooling you next is yourself.

      H 1 Reply Last reply
      0
      • G Guffa

        The name of the file is send as argument to the application. The args parameter of the main method is populated with the arguments that is sent to the application.

        Despite everything, the person most likely to be fooling you next is yourself.

        H Offline
        H Offline
        hain
        wrote on last edited by
        #3

        Perfect! Thanks. Can I store a data file icon in the executable? If so, how can I associate this icon with the (corresponding) data file?

        modified on Friday, February 29, 2008 5:27 PM

        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