How to mass delete duplicate shortcuts?


  1. Posts : 153
    Windows 7 Ultimate x64
       #1

    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 Computer


  2. Posts : 881
    Windows 7 Ultimate x64
       #2

    Would *mp3.ink work?
      My Computer


  3. Posts : 153
    Windows 7 Ultimate x64
    Thread Starter
       #3

    parman said:
    Would *mp3.ink 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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 05:35.
Find Us