I want to register my own project extension in window registry. I searched on google, at least i found this code, this works well, but I don't understand one line. What is meaning of "%L".
The C# code is
string ext = ".ext";
RegistryKey key = Registry.ClassesRoot.CreateSubKey(ext);
MessageBox.Show(exePath);
key.SetValue("", "My Project");
key.Close();
key = Registry.ClassesRoot.CreateSubKey(ext + "\Shell\Open\command");
//key = key.CreateSubKey("command");
key.SetValue("", """ + Application.ExecutablePath + "" "%L"");
key.Close();
key = Registry.ClassesRoot.CreateSubKey(ext + "\DefaultIcon");
key.SetValue("", Application.StartupPath + "\icon.ico");
key.Close();
that is line which confuse me,
key.SetValue("", """ + Application.ExecutablePath + "" "%L"");
Please explain, I'm very thankful to you in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…