ich ein Paar von Versorgungs haben (aus der Zeit vor dem Clip Befehlsteil der Fenster war) auf dieser Seite verfügbar:
http://www.clipboardextender.com/general-clipboard-use/command-window-output-to-clipboard-in-vista
Es gibt zwei Dienstprogramme dort, Clip2DOS und DOS2Clip. Sie wollen Clip2DOS:
Clip2DOS Copyright 2006 Thornsoft Entwicklung Dumps Zwischenablage Text (1024 Bytes) zu stdout.
Verwendung: Clip2Dos.exe> out.txt Ergebnis: Text befindet sich in der Datei. Grenzen: 1024 Bytes. Lizenz: Frei, wie in Free Beer! http://www.thornsoft.com/dist/techsupport/dos2clip.zip
DELPHI-QUELLE ENTHALTEN!
Und hey, hier ist es (Clip2DOS.dpr):
{Clip2DOS - copyright 2005 Thornsoft Development, Inc. All rights reserved.}
program Clip2Dos;
{$APPTYPE CONSOLE}
uses
Clipbrd,
ExceptionLog,
SysUtils;
var
p : Array[0..1024] of Char;
begin
try
WriteLn('Clip2DOS Copyright 2006 Thornsoft Development');
Clipboard.GetTextBuf(p,1024);
WriteLn(p);
except
//Handle error condition
on E: Exception do
begin
beep;
Writeln(SysUtils.format('Clip2DOS - Error: %s',[E.Message]));
ExitCode := 1; //Set ExitCode <> 0 to flag error condition (by convention)
end;
end
end.
Lösung ohne 3rd-Party-Software hier: https://Stackoverflow.com/a/15747067/1683264 – rojo