I normally manually edit the permissions for the LINKS folder (found in C:\Users\USER NAME\ ), so I don't accidentally delete a shortcut under the Links pane in Explorer.
To do this, I navigate to the USER NAME folder, right click on LINKS, choose Properties, Security tab, Advanced, Change Permissions, click on my USER NAME, then Edit, then I check the boxes for DENY next to "Delete Subfolders and Files" and "Delete."
Anytime I want to actually delete a shortcut, though, I need to reverse the process, make my changes, then redo the process. Since I edit the permissions of this folder on more than I computer, it can be very time consuming.
So, to save me time, I was trying to write two batch files: one to use to add the deny permissions and one to use to take them away.
I've discovered the ICALCS command and Windows' environmental variables, and have been playing around with them to try to get them to do what I want. But I can't quite figure it out.
Can anyone offer insight? Thanks.