Autor Beitrag
demo88
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 160

Ubuntu 6.04, Win XP
Delphi 7
BeitragVerfasst: Di 01.03.05 12:00 
Ich habe ein Programm(Konsolenanwendung) geschrieben das bei jedem Systemstart mehrere Programme ausführt.

Darunter ist auch eine Konsolenanwendung (das heißt wenn ich die Anwendung in Windows ausführe öffnet sich die Konsole und es werden ein paar Zeilen Text reingeschrieben)

Ich möchte aber das diese paar Zeilen Text nicht in einer eigenen Konsolenanwendung erscheinen sondern in meiner.

Wie geht das?


Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am Mi 02.03.2005 um 17:52
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Di 01.03.05 12:20 
müsste mit ner Suche im MSDN PIPE zu machen sein
demo88 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 160

Ubuntu 6.04, Win XP
Delphi 7
BeitragVerfasst: Di 01.03.05 12:24 
msdn.microsoft.com/l...s/midl/midl/pipe.asp :?:
tut mir leid aber ich versteh noch weniger als nichts :?
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Di 01.03.05 12:25 
demo88 hat folgendes geschrieben:
msdn.microsoft.com/l...s/midl/midl/pipe.asp :?:
tut mir leid aber ich versteh noch weniger als nichts :?


Englisch oder technisch?

AXMD
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Di 01.03.05 12:25 
kannst aber auch folgenden trick probieren:

angenommen du führst pkunzip.exe aus
ausblenden Quelltext
1:
pkunzip.exe > C:\test.txt					

so leitest du die ausgabe in die datei c:\test.txt um.
nach beendigung der ausführung könntest diese datei in deiner consolenanwendung anzeigen lassen z.b.
ausblenden Quelltext
1:
type C:\test.txt					
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Di 01.03.05 12:28 
An dem Beispiel sieht man's auch sehr gut:

ausblenden Quelltext
1:
dir C:\WINDOWS > C:\dateiliste.txt					


Das geht übrigens auch andersrum ;)

ausblenden Quelltext
1:
woerterzaehlen.exe < C:\einedatei.txt					


vorausgesetzt, das Programm Woerterzaehlen existiert und zählt Wörter.

Kombinieren kannst du das übrigens auch:

ausblenden Quelltext
1:
woerterzaehlen.exe < C:\einedatei.txt > C:\ausgabe.txt					


AXMD
demo88 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 160

Ubuntu 6.04, Win XP
Delphi 7
BeitragVerfasst: Di 01.03.05 12:29 
englisch kann ich einigermassen
aber technisch versteh ich nichts :cry:

//edit: wieso schreibt ihr so schnell? :shock:

das heißt das sollte ungefähr so aussehen:

ausblenden Delphi-Quelltext
1:
2:
exe:='pwweb.exe' //Die Ausgabe des programms soll in meinem Programm angezeigt werden
ShellExecute(0'open', PChar(exe), PChar(parameter), Nil, SW_NORMAL);


Ich komm dann aber nicht weiter??