I have an interesting query. If I select a file in a directory by using mouse, Is it possible to fetch the path of this file using Powershell or otherwise? Is it stored somewhere in registry or file? I want to fetch full path of file for mouse event.
Do you want this to fire any time a file is selected in explorer or do you want the script to launch an explorer window and retrieve a file? If it’s the latter then it can be done with windows forms. Here’s a simple example: