Directory Path from Right Click

一世执手 提交于 2019-12-11 09:13:57

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/8931305/directory-path-from-right-click

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!