shell

hi, could someone please tell me the c# conversion of the vb Command()

Command() gives me the filepath of the file that was clicked on that opened my app, much like clicking a document will open word, word then gets the filepath and opens the file

thanks for an help




Answer this question

shell

  • dksimon

    Application.ExecutablePath



  • vkumar

    I think you want Environment.CommandLine



  • Carl Tawn

    that is good enough thank you

  • Shiku

    i understand that that will give e the filepath of my app, but thats not what i need. What i mean is ive edited the registry so i can right-click files with the extension .adg, and there will be the option to 'edit', on clicking edit, my app launches.

    What i now need is the files filepath that launched it, in vb Command() would find it, but i cannot find a c# conversion



  • shell