Directory Path from Right Click
-
17-04-2021 - |
Question
I'm trying to write a program that can password protect individual folders, but I'm having a little trouble. I already have the option added to the context menu, but I don't know how to get the folder path that was right clicked on to open the context menu program.
Solution
The OS should pass the path to your program as an argument. It should be the first one. You would just need to capture the command line arguments in your code.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow