I have a desktop application written in C # and this application allows users to create a folder on their hard drive. on windows 7 and 8, the application creates a shortcut for this folder in the Favorites menu on the left side of the Window window.
In windows 10 there is no "Favorites" menu, it has been replaced by a quick access menu, and if you right-click on a folder, you can select the "Pin" folder for quick access.
To do this programmatically from within C # code, I found a .exe file that can perform the Pin action as if the user clicked on a menu item to link the folder I got it from here http://www.maddogsw.com/cmdutils/
The problem is that exe does not contain an option to unpin a folder from quick access, so I canβt remove the shortcut from the shortcut menu unless I delete it and I donβt want to do this.
I tried to find the shortcut file, and I found it on this path% AppData% \ Windows \ Recent \ AutomaticDestinations
but there is no mapping between this file label and the file itself. and at the same time, when I delete files from this path, all Pinned folders shortcuts remove not only my shortcut from quick access.
can anyone help with this?
Do I need to know if there is any command that I can use in the Pin \ Unpin folder for quick access from the command line?
c # windows-10 winforms shortcuts
Laila
source share