Autor Beitrag
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Fr 13.06.08 20:54 
Hi DF!

Wie speichere ich (C++) die Ausgabe der Eingabeaufforderung in einer Datei?


Moderiert von user profile iconChristian S.: Topic aus Algorithmen, Optimierung und Assembler verschoben am Sa 14.06.2008 um 12:19

_________________
Die Lösung ist nicht siebzehn.
MDX
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Fr 13.06.08 21:09 
Rechtsklick - > Alles Markieren - > Enter drücken - > Editor öffnen - > STRG + V
Mitmischer 1703 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Fr 13.06.08 21:22 
:roll: :evil: :cry: :?:

_________________
Die Lösung ist nicht siebzehn.
MDX
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Fr 13.06.08 21:26 
user profile iconMitmischer 1703 hat folgendes geschrieben:
:roll: :evil: :cry: :?:


Ich verstehe deine Formulierung nicht xD
Mitmischer 1703 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Sa 14.06.08 11:05 
:P

Heißt das, dass ich wirklich nach dem Fenster suchen und die ganzen Tastendrücke simulieriern muss :shock: : crying:

_________________
Die Lösung ist nicht siebzehn.
huuuuuh
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 665
Erhaltene Danke: 19

win xp, (win vista), win 7
VS 2008 Express Edition, VS 2010 Express Edition, VS 2010 Professionell
BeitragVerfasst: Sa 14.06.08 11:14 
ich verstehe jetz nich so ganz was deine fragen miteinender zu tun haben...
Mitmischer 1703 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Sa 14.06.08 11:18 
Wenn ich das Programm C:\Windows\system32\taskkill.exe ausführe, blinkt das kurz auf und ist danach sofort wieder weg. Das, was taskkill schreibt, will ich "abfangen" und speichern.

_________________
Die Lösung ist nicht siebzehn.
wunsiedler
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 506
Erhaltene Danke: 4

Win7

BeitragVerfasst: Sa 14.06.08 12:54 
Start -> Ausführen -> "cmd" eingeben. Dort taskkill aufrufen, dann müsste das Fenster offen bleiben.

Ich kanns nicht testen, da ich 'taskkill.exe' irgendwie nicht habe... :shock:
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Sa 14.06.08 15:35 
Leute, ist das wirklich so schwer zu verstehen? Gut, er hat es etwas kompliziert ausgedrückt, aber er will schlicht und einfach die Ausgabe eines Kommandozeilenprogramms speichern, und zwar in C++.
Zur Antwort: Such mal im Forum nach Pipes.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
Mitmischer 1703 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Sa 14.06.08 15:47 
:zustimm:

Danke! Ich werd mich dann mal nach pipes umschauen :les:

_________________
Die Lösung ist nicht siebzehn.