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. how can get start path at load time ?

how can get start path at load time ?

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.
  • B Offline
    B Offline
    B A
    wrote on last edited by
    #1

    Hi, I have created a file association in my C# program, but it just opens my program and doesnt actually load the file. What should I do? Thanks,

    L 1 Reply Last reply
    0
    • B B A

      Hi, I have created a file association in my C# program, but it just opens my program and doesnt actually load the file. What should I do? Thanks,

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      your app will get launched and the file will be in the CommandLine arguments. Use one of: - the args parameter of static Main - Environment.GetCommandLineArgs() and add code to open the file. BTW: if you select multiple files in Win Explorer and double-click one of them, they will all appear (in random order) as command line args. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      this months tips: - use PRE tags to preserve formatting when showing multi-line code snippets - before you ask a question here, search CodeProject, then Google


      B 1 Reply Last reply
      0
      • L Luc Pattyn

        your app will get launched and the file will be in the CommandLine arguments. Use one of: - the args parameter of static Main - Environment.GetCommandLineArgs() and add code to open the file. BTW: if you select multiple files in Win Explorer and double-click one of them, they will all appear (in random order) as command line args. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        this months tips: - use PRE tags to preserve formatting when showing multi-line code snippets - before you ask a question here, search CodeProject, then Google


        B Offline
        B Offline
        B A
        wrote on last edited by
        #3

        Luc Pattyn :tank so much :rose: it was very good.

        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