Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How to mass delete duplicate shortcuts?

19 Oct 2012   #1

Windows 7 Ultimate x64
How to mass delete duplicate shortcuts?

I've created a folder with shortcuts to all my songs; about 3,000 in total.

The problem is that it's created duplicate shortcuts for most songs:

How would I go about deleting the duplicates? The duplicates share the same name, just with ".lnk" at the end.

I've tried using the following AutoHotkey scripts but none of these worked, they ended up deleting every file in the folder.
FileDelete, F:\Music\myshortcuts\*lnk*.*
FileDelete, F:\Music\myshortcuts\*.lnk
FileDelete, F:\Music\myshortcuts\*lnk*

Any suggestions? Thanks.

My System SpecsSystem Spec
19 Oct 2012   #2

Windows 7 Ultimate x64

Would * work?
My System SpecsSystem Spec
20 Oct 2012   #3

Windows 7 Ultimate x64

Quote   Quote: Originally Posted by parman View Post
Would * work?
Thank you. It did not work as planned using the FileDelete command however I used the following line and the problem is now solved.

FileMove, F:\Music\myShortcuts\*.mp3.lnk, F:\Music\mynewShortcuts\
My System SpecsSystem Spec


 How to mass delete duplicate shortcuts?

Thread Tools

Similar help and support threads
Thread Forum
Delete duplicate contacts in WLM
I am using WLM in W7 x 64 bit on my desktop. Recently several duplicate contacts have appeared in my contacts list. I have tried to delete them by right clicking on the duplicate contact, but in every case the 'delete contact' is greyed out. Can you please help ?
Browsers & Mail
Which duplicate(s) to delete?
Been using Glary's Utilities 3 to clean things up. When I ran its "Duplicate" cleaner, there were many duplicates with iTunes and my pictures. My problem is that I don't know which to delete and which to keep. Here are screen shots to give you an idea of what the duplicate scan showed (BTW,...
Performance & Maintenance
Duplicate context menu entries on folder shortcuts
I have a folder, called "HG", full of various folder shortcuts which I use as a custom toolbar on my taskbar, system is W7Pro@x64. (The very purpose of that toolbar is to let me access HG repositories on various folders). Recently, the folder shortcuts started misbehaving: on the context menu,...
General Discussion
Duplicate Invalid Shortcuts on Desktop
Desktop shows duplicate shortcuts but they cannot be moved or deleted. They are superimposed on the valid one. The valid one can be moved off them but they cannot be moved or deleted. When I right click on desktop and choose "View" and un-check "Show desktop icons" they remain there, all...
General Discussion
Duplicate shortcuts in the taskbar
A few days ago, when I added Google Chrome to my taskbar, all of my other icons disappeared. When I replaced them, they all had a (2) after their names and I when I tried to get rid of it by renaming them it said that a shortcut with that name already existed. How can I delete the icons that I...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:31.
Twitter Facebook Google+