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.

Was it helpful?

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.

C# - Arguments for application

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top