The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,522 other followers

Archive for the ‘Clipboard’ Category

RDP Clipboard Fix – via Remko Weijnen’s Blog (Remko’s Blog)

Posted by jpluimers on 2017/02/09

RDP Clipboard Fix is the client-side fix for loosing your RDP clipboard (server side fix is killing the RDPClip process). Since his site is not archived but some of the links have 404’s, here is the full article with fixed WayBack links:

Did you ever loose Clipboard functionality (copy/paste) while working with several Terminal Server sessions? I think everyone that works a lot with Terminal Server has experienced this from time to time.

It’s caused by badly behaving applications. Dimitry Vostokov wrote a tool to fix this issue for Citrix (RepairCBDChain.exe), he explains the issue very well on his blog:

Windows has a mechanism to notify applications about clipboard changes. An application interested in such notifications has to register itself in the so called clipboard chain. Windows inserts it on top of that chain and that application is responsible to propagate changes down the chain:


If 3rd-party application forgets to forward notifications down then we have a broken clipboard chain and clipboard changes are not sent via ICA protocol:

Read more at Dimitry’s Blog:

So how can we fix this for Terminal Server then?

MSTSC creates a hidden window with Window Class RdpClipRdrWindowClass, you can observe this with a Window Spy tool such as X-Spy

Clipboard Redirector Window

If we look at the Window Style we can see the Window is hidden (doesn’t contain WS_VISIBLE):

Window Style

So we just need to find all windows with this Windows Class and subscribe them to Clipboard Notifications.

The code is simple:

function EnumWindowsProc(hHwnd: HWND; Param:Integer): boolean; stdcall; 
var ClassName: String; 
  SetLength(ClassName, 255); 
  SetLength(ClassName, GetClassName(hHWnd, PChar(ClassName), 255));        
  if ClassName = 'RdpClipRdrWindowClass' then 
    // This is uses to restore the clipboard functionality 
  Result := True; 

Using EnumWindows instead of FindWindow (as RepairCBDChain seems to do) has the advantage that it finds multiple windows (when you have multiple sessions) and not just the first.

You can download the compiled version below. If you like it why not leave a comment?

Screenshot RDPFixClip

RDP Clipboard Fix (12076) –

See here for more Terminal Server related articles:

There’s an explanation of this issue at the Microsoft Terminal Services team blog too:


Source: RDP Clipboard Fix | Remko Weijnen’s Blog (Remko’s Blog)

Posted in Clipboard, Development, Power User, Software Development | 1 Comment »

Mac OS X: Copy and paste the full path of a file in the Finder (via: Reality Distortion)

Posted by jpluimers on 2012/07/27

FilePathToClipCMPlugin is a live saver.

  1. Download it.
  2. Open the .dmg
  3. Open a new Finder window
  4. Point it to the folder “/Library/Contextual Menu Items/” or to “˜/Library/Contextual Menu Items/” (create the latter if it does not exist).
  5. Drag the required plugins there
  6. Restart your machine (restarting the Finder did not work for me)


via: Copy and paste the full path of a file in the Finder — Reality Distortion: Macs, Mac OS X, and Apple stuff.

Posted in Apple, Clipboard, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook-Air, MacBook-Pro, Power User | Leave a Comment »

ClipName from the PC TimeWatch people – Freeware

Posted by jpluimers on 2011/02/18

Every once in a while I need to copy a bunch of filenames to the clipboard.
This is where the freeware tool [WayBackClipName comes in action: it can copy them in various formats (and works much better than the similar [WayBackClipPath, which can only copy them as CSV)

Quote from the ClipName page:

ClipName is also a Context Menu extension copying the full pathname of the right-clicked file to the clipboard. This new version supports copy of multiple filenames either as a space separated list or as a CRLF separated list. DOS filenames (8.3) can now also be copied as well as the URL encoded name and the UNC name for remote files. Clipname supports a Copy command for filenames without including any path, URL Encoding for multiple selections and style encoding for Microsoft Word, Microsoft OneNote,… A version running under Windows Vista 64-bit is now available. It also allows to copy the UNC name for local files and folders. Version 1.3 adds the capability of copying the target URL for Internet Shortcuts from Windows Explorer and from within the IE Favorites bar.

It comes both in 32-bit x86, and in x64 versions.




Posted in Clipboard, Power User, Windows, Windows 7, Windows Vista, Windows XP | 2 Comments »

%d bloggers like this: