title: Getting the folder path of the last location i right clicked
body: <p>I created a right click shortcut entry (in Explorer's right click context menu) for my application, and I want to get the folder path of the right clicked location, how do i do it?</p>
  
  <p>My code to create the shortcut:</p>
  
  <pre><code>RegistryKey rKey = Registry.ClassesRoot.OpenSubKey(@"Directory\Background\shell", true);
  String[] names = rKey.GetSubKeyNames();
  foreach (String s in names)
  {
      System.Windows.Forms.MessageBox.Show(s);
  }
  RegistryKey newKey = rKey.CreateSubKey("Create HTML Folder");
  RegistryKey newSubKey = newKey.CreateSubKey("command");
  newSubKey.SetValue("", @"C:\Users\Aviv\Desktop\basicFileCreator.exe " + "\"" + "%1" + "\"");
  newSubKey.Close();
  newKey.Close();
  rKey.Close();   
  </code></pre>
  
  <p>Thanks in advance.</p>