New
#20
Works on a TXT file with ULTRAEDIT set as default. Great, thanks!
@Brink
The html one doesn't work unless you do the same:
I've also made a portion for .css files, you can throw it in the tut if you feel like it:Code:;For HTML files [HKEY_CLASSES_ROOT\SystemFileAssociations\.html\shell\CopyContents] "Extended"=- "Icon"="DxpTaskSync.dll,-52" "MUIVerb"="Copy Contents to Clipboard" [HKEY_CLASSES_ROOT\SystemFileAssociations\.html\shell\CopyContents\command] @="cmd /c clip < \"%1\""
The .css association is not present by default but it should add automatically.Code:;For CSS files [HKEY_CLASSES_ROOT\SystemFileAssociations\.css] "PerceivedType"="document" [HKEY_CLASSES_ROOT\SystemFileAssociations\.css\shell] [HKEY_CLASSES_ROOT\SystemFileAssociations\.css\shell\Copy Contents] "Icon"="DxpTaskSync.dll,-52" "MUIVerb"="Copy Contents to Clipboard" [HKEY_CLASSES_ROOT\SystemFileAssociations\.css\shell\Copy Contents\command] @="cmd /c clip < \"%1\""
BTW: This tut is a good one! Very handy for me!![]()
A note of interest:
On a UWP jump list, only .txt files are copy-able... (and there's no clipboard icon in the right click menu)
On a Win32 jump list, all files are copy-able...
![]()
Gotta run the reg file after the update, only adheres to reg files!
Hello @Brink,
I thought it would be nice to include PowerShell in the REG file so I decided to put the code together and then post it for your consideration to include it so others could also benefit.
However, I am having a problem incorporating it!
I have tried this [ plus a few others ] . . .
I can't seem to find where it is situated. I have obviously looked for . . .Code:;For PS1 files [HKEY_CLASSES_ROOT\ps1file\shell\CopyContents] "Extended"=- "Icon"="DxpTaskSync.dll,-52" "MUIVerb"="Copy Contents to Clipboard" [HKEY_CLASSES_ROOT\ps1file\shell\CopyContents\command] @="cmd /c clip < \"%1\""
. . . etc etc.Code:HKEY_CLASSES_ROOT\SystemFileAssociations\.ps1 HKEY_CLASSES_ROOT\SystemFileAssociations\.ise
Thanks in advance.
@Brink,
Well, it has taken me a while, but here it is . . .
If you can check that it is OK please and whether or not it will be a good addition to the Tutorial.Code:;For PS1 files [HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\shell\CopyContents] "Extended"=- "Icon"="DxpTaskSync.dll,-52" "MUIVerb"="Copy Contents to Clipboard" [HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\shell\CopyContents\command] @="cmd /c clip < \"%1\""
Great find @Paul Black. I was playing with it using the Microsoft.PowerShellScript.1 key earlier, but I kept getting a no program associated error with the context menu for some reason.
This works though. Tutorial now updated to include the context menu for .ps1 files.![]()