Select specific file from Windows Explorer window
I have found a few other forum posts asking for similar things, where the solution is usually one form or another of doing what the tester needs to do in a different way, e.g. entering the location directly in the location bar in Open dialogs, clicking a random point in the window to pick any arbitrary file, etc., but have not found a direct answer on how to select a specific file from Windows Explorer. Is this possible?
I need to be able to test dragging-and-dropping a file onto our application. Depending on what will be tested and how later on, it needs to be a specific file. The folder is generated by the program at install, so I can't contrive to make it only contain one file or a specific set of files, and writing the test script to assume that it will always exactly contain the same set of files as the default install leaves it fragile.
It seems like this should be something I would be able to do, but all the workaround responses to similar questions are making me start to think that won't be the case, so has anybody else made drag-and-drop from Explorer to the application under test work in some other way?