2014-01-07 109 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

相關問題