6

Is there any simple, automatable method of check for a .lnk file validity?

I mean I got a couple of directories whith these shorcuts to apps, and the only way I know if the executable file stills where the link file points, is to look if the icon appears to be ok... weird.

So I want some sort of command or light tool (oss will be greatly appreciated) to check and perhaps delete any "broken .lnk" in a directory

Thanks!

5
  • Are you taking about symbolic-links (also known as junction points) or shortcuts? Mar 29, 2013 at 11:59
  • shorcuts, .lnk files. I wrote that 'symbolic links' betwen quotes because I'm a linux guy and didn't know that new windows OSes support a kind of s-links.
    – theist
    Apr 3, 2013 at 9:58
  • @theist - This would be a good point to remove symbolic links from your question if your asking about shortcuts since symbolic links do exists in the Windows world.
    – Ramhound
    Apr 3, 2013 at 11:05
  • @Ramhound I changed the tags from symbolic-links to shorcuts. And that other reference in text is quoted, meaning 'not exactly' the rest of the text and the title talks about Shorcuts or .lnk files. Do you think question isn't clear enough?
    – theist
    Apr 4, 2013 at 9:47
  • @theist - I still think you shouldn't mention symbolic links since your asking about shortcuts, and shortcuts, are NOT symbolic links.
    – Ramhound
    Apr 4, 2013 at 11:10

2 Answers 2

2

Try ChkLnks.exe by Microsoft. How To Clean Broken Shortcuts In Windows 7

There are some free apps as well to do the same. Apps to get rid of Broken Shortcuts

2
  • 2
    Or if you prefer using scripts...this article depicts working with shortcuts using Windows Powershell. windowsitpro.com/powershell/…
    – Gh0sT
    Apr 3, 2013 at 11:07
  • Yeah @Gh0sT . In fact in my home box this is fixed with a perl script runing with ActiveState's perl under windows... but I was looking for a 'user' solution :). I'll try your recomendation.
    – theist
    Apr 4, 2013 at 9:42
1

MS’s FixKit can check common ones for you automatically...

http://support.microsoft.com/mats/system_maintenance_for_windows/en-gb

2
  • uff strange tool. Once downloaded present a long and unuseful list of "things this can do" After select one who match my problem, it opens IE to download a long named exe. And asks to reboot... If anything of these wouldn't come from MS sites I will think that I've installed some sort of trojan. To be continued...
    – theist
    Mar 20, 2013 at 7:14
  • After restart seems like that tool can fix several problems I had and I dindn't know, And my broken links still there.
    – theist
    Mar 21, 2013 at 7:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .