Archive

Archive for January, 2012

Copy File Name to the clipboard – Windows explorer context menu

I added to the utilities section of the blog a small utility that add a menu in the Windows Explorer context menu that copy the file name to the clipboard. It works for all kind of files and also for folders.

Click this link to learn more and download it.

The approach is really simple. I have created a small application in C#. If the application receive a argument, it call the Clipboard.SetText(args[0]) method. Done.

To add a entry in the context menu of the Windows Explorer, you need to add a registry key.
1-Add a key under HKEY_CLASSES_ROOT\*\shell\
2-Add a command subkey.
3-Add a new string value that contains the executable path in the value as follow: abc.exe “%L”

 

 

To be able to handle the folders, you need to add a other registry key under HKEY_CLASSES_ROOT\Folder\shell\

Categories: Windows