This has been driving me nuts for the past day or so now. I'm looking for a way to handle files when they are dragged and dropped onto my application's icon or a shortcut to my application. I already know how to handle files that are dropped onto a form in my application while it is running. I would like to know how to accept files and folders dropped on my application's icon while it is not running.
For example, when I drop files on my application's icon before it is running, it opens the application, but that is all. I would like to be able to get these file paths so I can process them and have my program open them- just like if you drag a text file onto a shortcut to Notepad, or Notepad.exe icon and Notepad opens up with the file that was dragged onto it already opened.
Any help would be greatly appreciated. Thanks!