Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Application läuft nicht. (https://www.delphipraxis.net/20248-application-laeuft-nicht.html)

Christian18 15. Apr 2004 08:58


Application läuft nicht.
 
Hallo,

Weiß jemand warum das nicht funktioniert??? Ich habe keine Ahnung. Ich weiß auch nicht was.

Delphi-Quellcode:
procedure TFTagessicherung.Button2Click(Sender: TObject);
var f, p, d : string;
begin
  f:='pacomp.exe';
  p:='-a -c2 -p -q '+(DateToStr)+' '.zip Edit1.Text+1*.db';
  ShellExecute(FTagessicherung.handle,nil,PChar(f),PChar(p),PChar(ExtractFileDir(Application.ExeName)), 1);
end;

mirage228 15. Apr 2004 09:01

Re: Application läuft nicht.
 
Zitat:

Zitat von Christian18
Hallo,

Weiß jemand warum das nicht funktioniert??? Ich habe keine Ahnung. Ich weiß auch nicht was.

Delphi-Quellcode:
procedure TFTagessicherung.Button2Click(Sender: TObject);
var f, p, d : string;
begin
  f:='pacomp.exe';
  p:='-a -c2 -p -q '+(DateToStr)+' '.zip Edit1.Text+1*.db';
  ShellExecute(FTagessicherung.handle,nil,PChar(f),PChar(p),PChar(ExtractFileDir(Application.ExeName)), 1);
end;

Versuchs mal so:

Delphi-Quellcode:
procedure TFTagessicherung.Button2Click(Sender: TObject);
var f, p, d : string;
begin
  f := 'pacomp.exe';
  p := '-a -c2 -p -q '+(DateToStr)+' .zip' + Edit1.Text+'1*.db'; // da fehlte ein ' / und was soll DateToStr
  ShellExecute(FTagessicherung.Handle, 'open', PChar(f), PChar(p), PChar(ExtractFilePath(Application.ExeName)),
    SW_SHOWNORMAL);
end;
mfG
mirage228

neolithos 15. Apr 2004 09:01

Re: Application läuft nicht.
 
Ist die Datenbank noch offen, bzw. bestehen Verbindungen darauf?

Ultimator 15. Apr 2004 09:16

Re: Application läuft nicht.
 
Zitat:

p:='-a -c2 -p -q '+(DateToStr)+' '.zip Edit1.Text+1*.db';
Ich glaube, du musst das .zip auch in '' setzen. Ich würde das so machen:
Delphi-Quellcode:
p:='-a .c2 -p -q '+(DateToStr)+'.zip'+Edit1.Text+1*.db
oder sehe ich da was falsch?


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:09 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz