Page 1 of 1

Removing "- Shortcut" from links...

Posted: 11 May 2017 00:49
by GUIguy
Ok, before finally tweaking the registry, I ended up with lots of shortcuts with the string "- Shortcut" in them. I want to remove that while preserving the descriptive filename.

I don' think XY can do this natively, but if so, please redirect this post and let me know. :?

I think it requires a script with regexp; something I'm clueless about. Can any/someone help out there? :?:

Re: Removing "- Shortcut" from links...

Posted: 11 May 2017 02:45
by highend

Code: Select all

    foreach($shortcut, quicksearch("* - shortcut* /f"), <crlf>, "e") {
        renameitem(replace(gpc($shortcut, "file"), " - shortcut"), $shortcut);
    }
Finds all files in the current folder + subfolders that match " - shortcut"
and renames them...

Re: Removing "- Shortcut" from links...

Posted: 11 May 2017 19:58
by klownboy
Or, try the excellent windows tweaking utility, Winearo Tweaker. http://winaero.com/ It will do what you want and make sure it's removed for any new shortcuts. It will also remove the shortcut arrow if you'd like along with many other tweaks. Another good tweaker is Ultimate Windows Tweaker. http://www.thewindowsclub.com/ultimate- ... windows-10