2014-01-07 62 views

回答

1

您需要设置命令以传递相关路径。而不是使用:

// From the related article 
regcmd.SetValue("",this.txtPath.Text); 

您应该能够使用:

string command = string.Format("\"{0}\" \"%1\"", this.txtPath.Text); 
regcmd.SetValue("", command); 

此建立,其中包括到你的可执行文件(this.txtPath.Text)的路径,然后选定项的命令字符串触发上下文时使用菜单(%1)。

+0

它现在的作品,非常感谢。 – user2925078

相关问题