I want to get the selected file or folder in the active explorer window and then pass it’s path to my program,how do I do it?
for example I click on x.exe on windows explorer and then press CTRL+SHIFT+X hotkey and do something.I need my program to get this path.
I found a C++ solution but I can’t figure out a C# solution for this.also I’m building a wpf application.
I want to get the selected file or folder in the active explorer window
Share
see here: https://stackoverflow.com/questions/7222749
there is already the C# code to find the desktop. This does not solve your exact issue but you can copy a lot of code and see how it works to detect the double click on the desktop 🙂