Answer the question
In order to leave comments, you need to log in
How to get data when calling a program from the context menu?
I am writing an application in C ++, the bottom line is that using the registry, I shoved my program into the context menu for folders (I will explain using Git Bash Here as an example), it looks something like this:
In the registry, the structure looks something like this:
and as we see in The command value indicates where to run the program from ("C:\Program Files\Git\git-bash.exe") and, as I understand it, pass the full path of the folder from which this program was called ("--cd=%v. "). So, please explain to me how to programmatically take this path ("--cd=%v."), when calling the program using the context menu?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question