Code: Alles auswählen
programm.exe datei1.txt > datei2.txt
Code: Alles auswählen
prog=RunProgram("programm.exe","datei1.txt > datei2.txt","",#PB_Program_Hide | #PB_Program_Open | #PB_Program_Error | #PB_Program_Read)
If prog
While ProgramRunning(prog)
String.s=ReadProgramError(prog)
If String<>""
Debug String
EndIf
Wend
EndIf
PS: Das Zeichen ">" ist dazu da, dass das programm.exe die Ausgabe nicht zurückgibt, sondern in eine Datei speichert.Cannot open >: Invalid argument