Remove-Invalid-Shortcuts-with-ShortcutsMan

Broken links aren’t something I enjoy finding because it means the file or folder I was accessing has somehow been moved or deleted. Regardless of my preferences toward them, ShortcutsMan helps locate all of them and even has an option to attempt repairs for broken links. Being portable, it can run straight from a USB device or network drive and reports can be generated to list all the shortcuts in a given directory and/or it’s subfolders. Take a look at how it works and how to start removing invalid shortcuts.

Scan and remove invalid shortcuts

Right -click anywhere in the ShortcutsMan window to choose “Select Broken Shortcuts.”

Select-broken-shortcuts-to-remove-in-ShortcutsMan

Click the “Broken Shortcut” column name until the broken shortcuts are shown in red at the top. We want to filter through this just to ensure we aren’t deleting shortcuts we want to keep for whatever reason.

View-all-broken-shortcuts-found-in-ShortcutsMan

We have found one above, so we’ll open it’s properties to learn more about it. With it selected, choose the properties icon on the top menu.

Open-the-properties-of-a-shortcut-in-ShortcutsMan

Or right-click to select “Edit Shortcut” and open the regular Windows Properties dialog box.

Edit-a-shortcut-to-view-more-information-in-ShortcutsMan

We can now view the target and name as we would in Explorer to get a better feel for what it is we’re missing when it comes to this broken link. ShortcutsMan can attempt to fix broken links by choosing “Resolve Selected Shortcuts” from the right-click menu on any selected entry. This works by looking for files or folders that the shortcut may have been pointing to and then correcting it.

Attempt-to-resolve-broken-shortcuts-in-ShortcutsMan

If a match cannot be made you can remove the shortcut entirely by choosing “Delete Selected Shortcut” or entering “Ctrl+Del” on the keyboard.

Delete-selected-shortcuts-in-ShortcutsMan

Confirm the removal to finish.

Confirm-the-removal-of-a-shortcut-in-ShortcutsMan

Command line options are available for scanning a different directory than the default Start menu and Desktop folders.

To scan custom subfolders, a command line window needs to be ran from the ShortcutsMan directory. I am running the “shman” program file from the root of the C drive so in Windows 7 I’ll “Shift + right-click” on the directory (C) and choose to “Open command window here.”

Enter “shman.exe /folders locationwhere “location” is the folder to search.

Enter-a-command-switch-for-shman-in-the-command-prompt-to-scan-a-particular-directory

Instead of running the ShortcutsMan application to view the results of this command we can run another switch to export it to a file.

Create reports of broken links

Enter “shman.exe /folders %UserProfile%\Documents /shtml C:\Reports\BrokenDocumentShortcuts.html” to export a report of broken links found in “%UserProfile%\Documents” to a file located at “C:\Reports\BrokenDocumentShortcuts.html.”

View-a-custom-report-exported-from-the-command-line-for-ShortcutsMan

To search just a folder and not it’s subdirectories, use “/folder” without an “s.”

Note if the above folder name of “Reports” was not created before running the command, an “Error 3” prompt will result.

Error-3-is-displayed-when-a-path-does-not-exist-when-created-a-report-for-ShortcutsMan

For just a handy list of all the items found in ShortcutsMan, select “View > HTML Report – All Items” from the ShortcutsMan application window.

Run-an-HTML-report-from-the-View-menu-in-ShortcutsMan

ShortcutsMan may not look appealing, or even feel nice due to the custom reports being ran from a command window, but it beats manually searching for invalid links. Shortcuts only take up bytes of space to point to a file or folder. If you seem to find thousands of invalid links it could possible free up a couple megabytes of space. Consider releasing even more space using some other free tools.

This has been tested and found to work in both Windows 7 and Windows 8 x64.

Download ShortcutsMan.