How do I get the path to the associated file used to launch a program?

Posted by Strilanc on Stack Overflow See other posts from Stack Overflow or by Strilanc
Published on 2010-03-24T16:17:47Z Indexed on 2010/03/24 16:23 UTC
Read the original article Hit count: 227

I have a program with an associated file type. However, when I double-click a file to launch the program, I can't figure out where that path was passed to the program.

Initially I thought the file path would be in Environment.CommandLine, but the command line only contained the program path.

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about vb.net