Here, sample C source for CLI command that copies current directory to clipboard:-
http://stackoverflow.com/questions/1...clipboard-in-c
Could be modified to send something else to clipboard (if modded to take string, then anything else to clipboard).
(not bullet proof error processing, need a bit more work but reasonable template).
EDIT: 2nd last post.
EDIT: Uses UNICODE, easily modded to ANSI (Change CF_UNICODETEXT to CF_TEXT and change WCHAR stuff).