You can try  Swiss File Knife (SFK):
sfk toclip
 Copy stdin to clipboard as plain text.
    type test.txt | sfk toclip
       Copies the content of ASCII file test.txt into the clipboard.
    sfk list | sfk toclip
       Copies a file listing of the current dir into the clipboard.
sfk fromclip [-wait] [-clear]
 Dump plain text content from the clipboard to the terminal.
   -wait : block until plain text is available.
   -clear: empty the clipboard after reading it.
Example: turn backslashes into forward slashes. Imagine you have the following text open within Notepad:
foo/bar/systems/alpha1.cpp
foo/bar/systems/alpha2.cpp
foo/bar/systems/beta1.cpp
And for some reason you need the first line in a format like this:
foo\bar\systems\alpha1.cpp
Then you may do it this way:
- Mark the first line using SHIFT + CURSOR keys.
 
- Press Ctrl + C or Ctrl + Insert to copy it into clipboard
 
On the Windows command line, run this command (for example, from a batch file):
sfk fromclip +filter -rep x/x\x +toclip
 
Back in the editor, press Ctrl + V or Shift + Insert, pasting the result from the clipboard.
 
As you see, the line changed into "foo\bar\systems\alpha1.cpp".