Removing "- Shortcut" from links...

Discuss and share scripts and script files...
Post Reply
GUIguy
Posts: 95
Joined: 03 Jan 2016 02:11
Location: Oregon, USA Win 10-64
Contact:

Removing "- Shortcut" from links...

Post 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? :?:
GUIguy
I measure a good day by how little I fell behind

Quick, hire a teenager while they still know everything!

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

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

Post 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...
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4139
Joined: 28 Feb 2012 19:27

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

Post 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
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

Post Reply