target-opener

Target opener – program to add “Find target” to context menu

My newest project in C++. I just started with C++ so code might not be godlike, so bear with me.
Mainly to make my life easier, because I usually use the “Find target” button on shortcuts and to save me some clicking I made this.
Solutions for this problem already exist, but they all need registering with regsrv32 this and running in CMD that. Fuck ’em. My solution is simple and it works.

It adds a context menu entry via the registry for LNK file types (shortcuts). So when you right-click a shortcut, “Find target” item appears.
It works on WinXP and Win7. But for Win7 you have to do something about that UAC – most likely just disable that shit, it’s useless anyway.

So, I packed everything in a self-extracting archive. Extract it to somewhere and there will be the program and 3 batch files. Run “add.bat” to install it, “remove.bat” to remove it.
Run TargetOpener.exe in CMD with “help” arg to see the usage help. But included batch files are enough.

Anyway, here is the archive:
TargetOpenerArchive.exe

here is the whole project (made with Embarcadero RAD studio):
TargetOpenerProject.zip

and here is the code (I must confess – path extraction from LNK files snippet was put together from pieces found on the web and modified a bit, I didn’t write it entirely):
TargetOpener.cpp

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments