title: Programatically Pin\UnPin the folder from quick access menu in windows 10
body: <p>I have a desktop application written in c#, and this application enables users to create the folder on their machine Hard drive . on windows 7 and 8, The App creates a shortcut for this folder under Favorit menu on the left side of windows Explorer window.</p>
  
  <p>In windows 10 there is no Favorite menu, it was replaced by Quick access menu, and if you right click on the folder you can choose to Pin folder for quick access.</p>
  
  <p>To do this  programmatically from inside c# code, I found a .exe that can execute the Pin action as if the user clicked on the menu item to pin the folder
  I got it from here  <a href="http://www.maddogsw.com/cmdutils/" rel="nofollow noreferrer">http://www.maddogsw.com/cmdutils/</a> </p>
  
  <p>The problem is this exe does not contain an option for Unpin the folder from quick access so i will not be able to remove the shortcut from the quick access menu unless if I deleted it and I don't want to do that.</p>
  
  <p>I tried to find the shortcut file and I found it in this path 
  %AppData%\Windows\Recent\AutomaticDestinations </p>
  
  <p>but there is no mapping between this file shortcut and the file itself. and at the same time when I delete the files from this path, all the Pinned folders shortcut delete from the quick access not only my shortcut.</p>
  
  <p>anyone can help in this ??</p>
  
  <p>Do I need to know if there is any command that I can use it to Pin\Unpin folders to quick access from the command prompt?</p>