How to get path of opened file in Unity

  file, registry, unity3d, windows

I’m making a project where you can open the application with my own file ending (.swe).

I wan’t to achieve the same thing like the normal notepad application on windows, that you can save your file anywhere on your pc and open it.

I already registered in registry, that my application opens when you click on a file with my own file ending. Now i wan’t to get the path of that file, to get the data in it. I already tried with CommandLineArguments, but i only get the path where the main application is located. How can i get the path of the file that i clicked on?

Thanks for any help!

Source: Windows Questions