Home > Windows > Copy File Name to the clipboard – Windows explorer context menu

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
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.