I've made MP3 Files on my computer to associate with my media player. So when i double click a MP3 file in the explorer, obviously the media player fires up and plays it.
My problem I can prevent multiple instances popping up, but how can i transfer the file path of the new instance to the instance i am using already
What i want to happen: I double click a song,... and im listening to it I double click another song and the current song should stop and new song should start playback, without popping up a new instance of the application.
I use Mutex to check whether there is already a running instance. To get file path i use Environment.GetCommandLineArgs()
All I need is to pass the file's path to the current instance. How can I do this??