I have a simple script (see attached) that I'd like to restructure and clean up and need some analysis.
In the script the first piece create's a shortcut but then the shortcut is deleted in the second part. The second part is still needed because I want to effectively update the shortcut because of a targetpath change. This script works fine if the new shortcut name isn't the same as the deleted ones. So it seems I need the deletion piece before the create new but I'm not sure how to do that.
Also, I'd like to know if there is any thing extraneous that can be removed. For instance in the second part I still have to Set Shell when It seems like I already did that at the top.