Create a context menu to drop a shortcut to a file into another folder

Inspired by the code here, I whipped up a quick console app to take the path to a file (an EXE in my case) and create a Windows shortcut to that file in the destination directory (argument 2). Here’s the source and EXE.

I implemented it as a custom context menu in Windows as follows:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Send_Launchbar]

[HKEY_CLASSES_ROOT\*\shell\Send_Launchbar\command]
@=”\”C:\\Portable\\NetUtils\\SendLnkFromEXE.exe\” \”%1\” \”C:\\dropbox\\my dropbox\\docs\\settings\\Launchbar\\Programs\”"

[HKEY_CLASSES_ROOT\*\shell\Send_Launchbar\DropTarget]
@=”\”C:\\Portable\\NetUtils\\SendLnkFromEXE.exe\” \”%1\” \”C:\\dropbox\\my dropbox\\docs\\settings\\Launchbar\\Programs\”"

Notice: This work is licensed under a BY-NC-SA. Permalink: Create a context menu to drop a shortcut to a file into another folder.

Leave a Reply