How do I programmatically delete a file in a Windows application?

I'm looking for a specific executable instance of Visual Studio to open a file. Is there a way to fake a drag and drop operation through code from my app in Visual Studio? It's the same as if I drag the file from Explorer to VS.

I understand that I could do this in an easier way than an add-in or a macro, but I want to make this work purely from a script.


source to share

1 answer

You can try sending the WM_DROPFILES message to the Visual Studio window.



All Articles