Windows 7 Need a script to remove "- shortcut" from all shortcuts on computer

Discussion in 'Programming and Scripting' started by larryvc, Mar 23, 2012.

  1. larryvc

    larryvc Well-Known Member

    Mar 23, 2012
    Likes Received:
    Script to remove "- shortcut" from all shortcuts on computer


    I finally got around to turning off the "- shortcut" that is appended to the shortcut name by editing the registry on a friends computer. He has way to many shortcuts in my opinion.

    Does anyone have a script, or would someone like to write a script, that will rename all the shortcuts on a computer that have "ShortcutName - shortcut" to "ShortcutName".

    I can write most of the script myself. The code I need help with is the parsing of the filename. I have not started to write the code yet, just trying to get some ideas as I thought this could be useful for other file renaming tasks as well.

    I have not done any scripting for many years and any help would be appreciated.

    #1 larryvc, Mar 23, 2012
    Last edited: Mar 24, 2012

Share This Page