Autor Beitrag
FrEaKY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 235


D7
BeitragVerfasst: Di 24.02.04 19:30 
Hi, Ich möchte in einem Projekt eine Batchdatei einbinden. Soweit ich weiß macht man das so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
begin  
   with TStringList.Create do try  
    Add('@ECHO OFF');  
    Add('ECHO ....');  
    SavetoFile({ExtractFilePath(Paramstr(0)) + }'C:\Irgentwas.bat');  
  finally Free end;  
  //Ausführen  
    ShellExecute(Form1.Handle, 'open', PChar({ExtractFilePath(Paramstr(0)) +  
    }
'C:\Irgentwas.bat'), nil, nil, SW_SHOW);


:?
Doch Delphi meldet: Undefinierter Bezeichner: 'ShellExecute'
Kann mir jemand weiterhelfen?
danke im Voraus.
Gruß

Moderiert von user profile iconMotzi: Code- durch Delphi-Tags ersetzt
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 24.02.04 19:31 
Such mal hier im Forum nach Shellexecute. :roll:
FrEaKY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 235


D7
BeitragVerfasst: Di 24.02.04 19:34 
Ok danke
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Di 24.02.04 19:54 
Binde mal die Unit ShellApi ein. :wink:

_________________
Viele Grüße
Jakob
FrEaKY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 235


D7
BeitragVerfasst: Di 24.02.04 21:36 
:D Ah genau die Unit hatte ich nicht drin danke.