Autor Beitrag
jojo-sp
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 317

Windows XP Prof, Vista Ultimate & Home Premium, Windows 7
Delphi 7 Enterprise, Delphi 2009
BeitragVerfasst: Mo 07.11.05 10:07 
Moinsen,

wie ist es möglich, den Output der Dos-Konsole in eine txt Datei zu speichern.

mit "... > Test.txt" funktioniert es nicht. Er legt zwar eine Datei an, die aber leer ist.

MfG Johannes Spreemann

_________________
Ist der Ruf erst ruiniert, lebts sich gänzlich ungeniert...
Wilhelm Busch (1832 - 1908)
ripper8472
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 114

Win2k (und wenn ich nen Zweitrechner haette, auch eine Linux Distri)

BeitragVerfasst: Mo 07.11.05 13:06 
erstmal heisst das konsole und nicht DOS. wir sind in win32 zeiten.

ausserdem muss das funktionieren.
du verschweigst etwas, denn an "app.exe > ausgabe.txt" liegts nicht.
jojo-sp Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 317

Windows XP Prof, Vista Ultimate & Home Premium, Windows 7
Delphi 7 Enterprise, Delphi 2009
BeitragVerfasst: Mo 07.11.05 14:02 
CMD ist nach wie vor eine emulierte Konsole von Dos...

Was soll ich dir denn verschweigen? "..." bedeutete egal welche exe (in meinem Falle gbak,gfix) bringt keinen Output..

_________________
Ist der Ruf erst ruiniert, lebts sich gänzlich ungeniert...
Wilhelm Busch (1832 - 1908)
ripper8472
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 114

Win2k (und wenn ich nen Zweitrechner haette, auch eine Linux Distri)

BeitragVerfasst: Mo 07.11.05 14:19 
unter win32 ist das kein DOS oder eine emulation, sondern nur eine textausgabe fuer 32bit anwendungen.

mach mal folgendes:

dir > verzeichnis.txt

und sag mal, wie du das machst (ob mit start-ausfuehren-cmd.exe oder anders)
jojo-sp Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 317

Windows XP Prof, Vista Ultimate & Home Premium, Windows 7
Delphi 7 Enterprise, Delphi 2009
BeitragVerfasst: Mo 07.11.05 17:03 
Danke, hat doch noch funktioniert

_________________
Ist der Ruf erst ruiniert, lebts sich gänzlich ungeniert...
Wilhelm Busch (1832 - 1908)
ripper8472
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 114

Win2k (und wenn ich nen Zweitrechner haette, auch eine Linux Distri)

BeitragVerfasst: Mo 07.11.05 17:08 
woran hats gelegen??

_________________
char l[]="\xd6N\x96\xa6\xe6\xce.\xa6\xe4\xce\x04N\x86\xae\xce\xfc",I,*i=l-1;for(;I=3,*
i++;){while(*i=*i&~(1<<I|1<<7-I)|(*i&1<<I)<<7-2*I|(*i&1<<7-I)>>7-2*I,I--);}puts(l);