I'd like to be able to tell an active process to open a file using the Windows command line ideally -- but any solution using built-in Windows (7+) capabilities (eg powershell or vbscript) also works.
For example, if I have an instance of notepad open and know its processid is 1234, it would be great to be able to do something like:
notepad.exe "myfile.txt" /pid=1234
and have notepad try to open the file in the window for the existing process.
Is this possible?