Autor Beitrag
ebiebiebi
Hält's aus hier
Beiträge: 9



BeitragVerfasst: So 03.12.06 13:58 
Hallo!
Ich habe schon gegooglet und finde leider nix darüber, wie man Parameter mit Delphi auslesen kann!

Exen von Windows kann man ja auch über Parameter starten (z.B. shutdown -i)!
Wie kann ich die jedoch mit Delphi auslesen ... :?:
Wo werden diese Parameter übergeben :?:
Bei Application. habe ich zumindest noch nix gefunden ....

Vielen Dank für die Hilfe
ebiebiebi
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 03.12.06 14:00 
ParamStr und ParamCount.

_________________
We are, we were and will not be.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 03.12.06 14:07 
und wenn das ganze noch luxuriöser sein soll, dann nimm die Parameter Unit von Tino aus den Open Source Units.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
ebiebiebi Threadstarter
Hält's aus hier
Beiträge: 9



BeitragVerfasst: So 03.12.06 14:09 
Danke für die schnelle Antwort!
Funktioniert nun ......


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
 var
  cmd : string;
  i : Integer;

begin
  for i := 1 to ParamCount do
    ShowMessage('Parameter '+IntToStr(i)+' = '+ParamStr(i));
//Zeigt alle Parameter auf ....
end;