Autor Beitrag
covel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 131

Win XP PRo
Borland D7/C#
BeitragVerfasst: Mo 22.08.05 10:16 
Hallo gibt es eine möglichkeit wie ich abfragen kann ob ein Shellexecute erfolgreich durchgeführt worden ist.
Habe mir selber schon gedanken gemacht könnte abfragen ob die Datei angelegt worden ist, aber vielleicht geht es ja einfacher


ausblenden Delphi-Quelltext
1:
ShellExecute(Application.Handle, 'open' ,PChar('c:\programme\foxserv\mysql\bin\mysqldump.exe'), PChar('--host='+host+' --user='+user+' --password='+pass+' --opt --result-file=backups\'+backupdirmonth+'\'+filename+' '+db+''),  nil, sw_Restore);					



grüße Covel
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Mo 22.08.05 10:22 
Ab und zu hilft ein Blick in die MSDN. ;)

:arrow: msdn.microsoft.com/l...ons/shellexecute.asp

Aber ich würde fast sagen, du überprüfst einfach, ob die Datei existiert oder nicht. Was soll sonst passieren?! ;)

slt, WeBBy
covel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 131

Win XP PRo
Borland D7/C#
BeitragVerfasst: Mo 22.08.05 10:56 
alles klar werde die Datei abfragen erscjeint mir am einfachsten


besten Dank