Forum: Object-Pascal / Delphi-Language
Delphi
by Harry M.,
9. Jan 2007
if GetConsoleOutput('cmd /K '+Edit1.Text, output, errors) then
label1.caption := output.ValueFromIndex
else
label1.caption := errors.text;
Zwecks eventueller Fehler, ne :wink:
Forum: Object-Pascal / Delphi-Language
Delphi
by Harry M.,
8. Jan 2007
Morgen
Ich glaub Du hast Dein Delphi leicht verbogen. Versuch mal reparieren von Setup.
function GetConsoleOutput(const Command: String; var Output, Errors: TStringList): Boolean;
var
StartupInfo: TStartupInfo;
ProcessInfo: TProcessInformation;
SecurityAttr: TSecurityAttributes;
Forum: Object-Pascal / Delphi-Language
Delphi
by Harry M.,
7. Jan 2007
Ist klar weil das programm nur die angegeben Parameter unterstützt, Die wären etwa -c -b -l
weder "read" noch "model" wird das Programm nie erkennen.
Forum: Object-Pascal / Delphi-Language
Delphi
by Harry M.,
7. Jan 2007
Check mal mal scip.exe "model test.mod"
Wo ist das der Parameter "model" (im Screen)??
Forum: Object-Pascal / Delphi-Language
Delphi
by Harry M.,
7. Jan 2007
Upps Ich meinte PChar.
Aber ich muss korigieren. Du hast. Hab es eben probiert.
Forum: Object-Pascal / Delphi-Language
Delphi
by Harry M.,
7. Jan 2007
var sFileName: Char;
würde auch gehn.
Forum: Object-Pascal / Delphi-Language
Delphi
by Harry M.,
7. Jan 2007
sFileName ist ein Sring den Du noch deklarieren musst.
Forum: Object-Pascal / Delphi-Language
Delphi
by Harry M.,
7. Jan 2007
Also Du hat (D)eine Anwendung wo du Infos in Edits hast. Jetzt soll beim Speichern gleich ein anderes programm gestarted werden, (SCIP.exe) wobei "model test.mod" an SCIP.exe übergeben wird. Richtig!?
Forum: Object-Pascal / Delphi-Language
Delphi
by Harry M.,
7. Jan 2007
...mal andersrum gefragt: Was soll am Ende dabei rauskommen wenn "Delphi Befehle in Dein Programm eingegeben" hat?