mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
changed the logic of the "Associate with *.cnp files" function
This commit is contained in:
parent
72dac3cfa3
commit
eefc16d0f5
2 changed files with 4 additions and 2 deletions
|
|
@ -407,6 +407,8 @@ private void MainWindow_Load(object sender, EventArgs e)
|
|||
}
|
||||
sendTo();
|
||||
}
|
||||
|
||||
if (args.Contains("/o")) /*decrypt & open cnp*/
|
||||
{
|
||||
openAsotiations();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ public static void AssociateExtension(string applicationExecutablePath, string e
|
|||
key = key.CreateSubKey("Shell");
|
||||
key.SetValue(string.Empty, "Open");
|
||||
key = key.CreateSubKey("Open");
|
||||
key.CreateSubKey("Command").SetValue(string.Empty, "\"" + applicationExecutablePath + "\" \"%1\"");
|
||||
key.CreateSubKey("Command").SetValue(string.Empty, "\"" + applicationExecutablePath + "\" \"%1\" /o");
|
||||
key.CreateSubKey("ddeexec\\Topic").SetValue(string.Empty, "System");
|
||||
}
|
||||
catch (Exception)
|
||||
|
|
@ -120,7 +120,7 @@ public static void AssociateExtension(string applicationExecutablePath, string e
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void DissociateExtension(string applicationExecutablePath, string extension)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Reference in a new issue