New
#30
Thanks @Brink.
Hello @Brink,
EXTREMELY useful Tutorial BTW.
Just an observation that doesn't really matter, but when you right-click a .txt file, there are two instances of Copy Contents to Clipboard in the Context Menu. I think it has to do with this section . . .
As I said, not a real problem as it caters for all instances of text files.Code:[HKEY_CLASSES_ROOT\textfile\shell\CopyContents] "Extended"=- "Icon"="DxpTaskSync.dll,-52" "MUIVerb"="Copy Contents to Clipboard" [HKEY_CLASSES_ROOT\textfile\shell\CopyContents\command] @="cmd /c clip < \"%1\"" [HKEY_CLASSES_ROOT\txtfile\shell\CopyContents] "Extended"=- "Icon"="DxpTaskSync.dll,-52" "MUIVerb"="Copy Contents to Clipboard" [HKEY_CLASSES_ROOT\txtfile\shell\CopyContents\command] @="cmd /c clip < \"%1\"" [HKEY_CLASSES_ROOT\txtfilelegacy\shell\CopyContents] "Extended"=- "Icon"="DxpTaskSync.dll,-52" "MUIVerb"="Copy Contents to Clipboard" [HKEY_CLASSES_ROOT\txtfilelegacy\shell\CopyContents\command] @="cmd /c clip < \"%1\""
Also, does . . .
. . . need to be added to the Remove_Copy_Contents_to_Clipboard_context_menu REG file?Code:[-HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\CopyContents]
@Paul Black,
Thank you. Remove .reg file updated.
Odd. I'm not getting duplicate context menus for .txt files.
Hello @Brink,
Firstly, there is an entry in the Remove_Copy_Contents_to_Clipboard_context_menu.reg file that needs to be removed as it is not included in the Add_Copy_Contents_to_Clipboard_context_menu.reg file . . .
This is the new list in the order that they appear in the Add_Copy_Contents file . . .Code:[-HKEY_CLASSES_ROOT\.txt\shell\CopyContents]
Code:[-HKEY_CLASSES_ROOT\batfile\shell\CopyContents] [-HKEY_CLASSES_ROOT\cmdfile\shell\CopyContents] [-HKEY_CLASSES_ROOT\SystemFileAssociations\.css] [-HKEY_CLASSES_ROOT\htmlfile\shell\CopyContents] [-HKEY_CLASSES_ROOT\SystemFileAssociations\.html\shell\CopyContents] [-HKEY_CLASSES_ROOT\JSFile\shell\CopyContents] [-HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\CopyContents] [-HKEY_CLASSES_ROOT\regfile\shell\CopyContents] [-HKEY_CLASSES_ROOT\rtffile\shell\CopyContents] [-HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\CopyContents] [-HKEY_CLASSES_ROOT\textfile\shell\CopyContents] [-HKEY_CLASSES_ROOT\txtfile\shell\CopyContents] [-HKEY_CLASSES_ROOT\txtfilelegacy\shell\CopyContents] [-HKEY_CLASSES_ROOT\VBSFile\shell\CopyContents]
Secondly, the reason I was getting the double entry was [ I think ] because in my REG file I had them set in a different order to yours. for example . . .
Where as yours is . . .Code:; *** BAT files *** [HKEY_CLASSES_ROOT\batfile\shell\CopyContents] "MUIVerb"="Copy Contents to Clipboard" "Icon"="C:\\Users\\System-Admin\\System-Admin_Master\\System-Admin_Icons\\MyCopy.ico" "Position"="Top" "Extended"=- [HKEY_CLASSES_ROOT\batfile\shell\CopyContents\command] @="cmd /c clip < \"%1\""
I think it is probably the position that I had "Extended"=- that caused the problem!Code:"Extended"=- "Icon"="DxpTaskSync.dll,-52" "MUIVerb"="Copy Contents to Clipboard"
I removed my REG keys and then ran yours [ with my custom icons ], and the double entry didn't appear!
Can I ask, is the structure that they are built important [ priority wise ] please?
Thanks in advance.
it is useful for me thanks @Brink and @Paul Black
brink why your scan with defender icon is different than me
is it about windows 10 1909 and 2004 differences?
I think I left the[-HKEY_CLASSES_ROOT\.txt\shell\CopyContents]
line in the remove .reg file for an older version of the add .reg file to make sure it was removed. It's no longer needed now though, so it's now removed and updated.
The order of the values under the key in a .reg file really don't matter. I just like to have them in alphabetical order to make it easier to spot them.
The"Extended"=-
line is there to remove the Shift+Right Click requirement if someone used the other add .reg file for Shift+Right Click. It wouldn't have added an extra context menu listing.