'To drop a file onto another app using code

Situation: I have a 3rd party app that does not accept its files in parameters during exec. The only way is to open a file through FILE/Open menu or by dragging and dropping a file onto the app's form.

I want to create an app in vb.net that will handle this file as its own, then lunch the original app and initiate the drop of file.

Question: How can I drop a file/file path onto 3rd party's app from code? I imagine I have to find the app handle and send some drop event with a path to file?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source